iwakuweb/Dockerfile
hexlocation pc a85d27f9a4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: docker building
2024-07-13 00:47:51 +02:00

23 lines
422 B
Docker

FROM rust:1.79 as compile
WORKDIR /build
COPY . .
RUN rustup target add x86_64-unknown-linux-musl
RUN rm -Rf /build/Cargo.lock
RUN cargo update
RUN cargo build --release
RUN ls /build/target
FROM gcr.io/distroless/cc
WORKDIR /app
COPY --from=compile /build/target/release/iwakura-web /app/
COPY --from=compile /build/assets /app/assets
COPY --from=compile /build/templates /app/templates
CMD ["/app/iwakura-web"]