obsolute-paste/Dockerfile
baalajimaestro e1340b68b8
Add static files to docker container
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2022-12-21 23:30:24 +05:30

18 lines
387 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: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"]