obsolute-paste/Dockerfile
baalajimaestro 0c0b95f031
Add templates into the binary container
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2022-12-11 23:05:22 +05:30

16 lines
341 B
Docker

FROM rust:bullseye 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:nonroot
COPY --from=builder /app/target/release/paste-frontend /
ADD --chmod=005 templates /templates
EXPOSE 8080
CMD ["/paste-frontend"]