Don't need to recompile TailwindCSS in container.
This commit is contained in:
parent
e9089755ef
commit
b5de97e2aa
@ -2,18 +2,14 @@ FROM rust:alpine
|
|||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
RUN apk add git musl-dev npm && \
|
RUN apk add git musl-dev
|
||||||
npm install tailwindcss
|
|
||||||
|
|
||||||
COPY build.rs .
|
|
||||||
COPY Cargo.toml .
|
COPY Cargo.toml .
|
||||||
COPY public/ public/
|
COPY public/ public/
|
||||||
COPY Rocket.toml .
|
COPY Rocket.toml .
|
||||||
COPY src/ src/
|
COPY src/ src/
|
||||||
COPY tailwind.config.js .
|
|
||||||
COPY templates/ templates/
|
COPY templates/ templates/
|
||||||
|
|
||||||
RUN mkdir target
|
|
||||||
RUN cargo install --config "net.git-fetch-with-cli=true" --path .
|
RUN cargo install --config "net.git-fetch-with-cli=true" --path .
|
||||||
|
|
||||||
CMD ["rust-letter"]
|
CMD ["rust-letter"]
|
||||||
|
Loading…
Reference in New Issue
Block a user