iwakuweb/Dockerfile
hexlocation pc dcbcb1636c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: Set right rust version
2024-07-12 23:51:44 +02:00

16 lines
311 B
Docker

FROM rust:1.79 as compile
WORKDIR /build
COPY . .
RUN rm -Rf /build/Cargo.lock
RUN cargo update
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"]