2023-03-30 17:08:41 -05:00
|
|
|
FROM rust:alpine
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2023-03-31 06:21:59 -05:00
|
|
|
RUN apk add git musl-dev
|
2023-03-30 17:08:41 -05:00
|
|
|
|
|
|
|
COPY Cargo.toml .
|
|
|
|
COPY public/ public/
|
|
|
|
COPY Rocket.toml .
|
|
|
|
COPY src/ src/
|
|
|
|
COPY templates/ templates/
|
|
|
|
|
|
|
|
RUN cargo install --config "net.git-fetch-with-cli=true" --path .
|
|
|
|
|
|
|
|
CMD ["rust-letter"]
|