Don't need to recompile TailwindCSS in container.

This commit is contained in:
Ada Werefox 2023-03-31 11:21:59 +00:00
parent e9089755ef
commit b5de97e2aa

View File

@ -2,18 +2,14 @@ FROM rust:alpine
WORKDIR /usr/src/app
RUN apk add git musl-dev npm && \
npm install tailwindcss
RUN apk add git musl-dev
COPY build.rs .
COPY Cargo.toml .
COPY public/ public/
COPY Rocket.toml .
COPY src/ src/
COPY tailwind.config.js .
COPY templates/ templates/
RUN mkdir target
RUN cargo install --config "net.git-fetch-with-cli=true" --path .
CMD ["rust-letter"]