iwakuweb/Dockerfile

17 lines
311 B
Text
Raw Normal View History

2024-07-12 21:51:44 +00:00
FROM rust:1.79 as compile
2024-07-12 19:56:23 +00:00
WORKDIR /build
COPY . .
2024-07-12 21:32:35 +00:00
RUN rm -Rf /build/Cargo.lock
2024-07-12 21:51:44 +00:00
RUN cargo update
2024-07-12 19:56:23 +00:00
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"]