obsolute-paste/Dockerfile
baalajimaestro 48c5b5b7d5
Expose port for service discovery
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2022-12-11 22:31:05 +05:30

15 lines
304 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 /
EXPOSE 8080
CMD ["/paste-frontend"]