mirror of
https://github.com/getzola/zola
synced 2024-12-04 01:19:14 +00:00
623756e7e3
This avoid conflicting GLibc version between the build step and the distroless cc one.
15 lines
382 B
Docker
15 lines
382 B
Docker
FROM rust:slim-bookworm AS builder
|
|
|
|
RUN apt-get update -y && \
|
|
apt-get install -y make g++ libssl-dev && \
|
|
rustup target add x86_64-unknown-linux-gnu
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN cargo build --release --target x86_64-unknown-linux-gnu
|
|
|
|
|
|
FROM gcr.io/distroless/cc-debian12
|
|
COPY --from=builder /app/target/x86_64-unknown-linux-gnu/release/zola /bin/zola
|
|
ENTRYPOINT [ "/bin/zola" ]
|