iwakuweb/Dockerfile

15 lines
265 B
Docker
Raw Normal View History

2024-07-12 21:56:23 +02:00
FROM rust:1.19 as compile
WORKDIR /build
COPY . .
RUN cargo build --release
FROM gcr.io/distroless/static-debian12
WORKDIR /app
COPY --from=compile /build/target/release/iwakura-web /bin/server
COPY --from=compile /build/assets /app/assets
CMD ["/bin/server"]