14 lines
292 B
Docker
14 lines
292 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 /
|
|
CMD ["/paste-frontend"]
|