iwakuweb/Dockerfile
hexlocation pc c61dadef0b
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline failed
fix: CI lock
2024-07-12 23:32:35 +02:00

15 lines
294 B
Docker

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