20 lines
350 B
Docker
20 lines
350 B
Docker
|
FROM rust:alpine
|
||
|
|
||
|
WORKDIR /usr/src/app
|
||
|
|
||
|
RUN apk add git musl-dev npm && \
|
||
|
npm install tailwindcss
|
||
|
|
||
|
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"]
|