obsolute-paste/Dockerfile
baalajimaestro 38567f47a8
All checks were successful
/ Building (push) Successful in 3m12s
Upgrade to debian 12 images
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2023-10-10 18:57:40 +05:30

18 lines
396 B
Docker

FROM rust:bookworm as builder
RUN mkdir /app
WORKDIR /app
COPY Cargo.toml /app
COPY Cargo.lock /app
COPY src /app/src
COPY templates /app/templates
RUN cargo build --release
FROM gcr.io/distroless/cc-debian12:latest
WORKDIR /app
COPY --from=builder /app/target/release/paste-frontend /app/paste-frontend
ADD templates /app/templates
ADD static /app/static
EXPOSE 8080
CMD ["./paste-frontend"]