From 3960db2db7e439fa6c34663635c176d1199d6805 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Mon, 31 Mar 2025 15:16:31 +0200 Subject: [PATCH] Change base image from `alpine` to `scratch` --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5767f9f6..b7f3a288 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ RUN --mount=type=cache,target=/root/.cargo/git/db \ xx-verify /src/target/$(xx-cargo --print-target-triple)/release/oxipng && \ cp /src/target/$(xx-cargo --print-target-triple)/release/oxipng /src/target/oxipng -FROM alpine AS tool +FROM scratch AS tool LABEL org.opencontainers.image.title="Oxipng" LABEL org.opencontainers.image.description="Multithreaded PNG optimizer written in Rust" @@ -39,7 +39,7 @@ LABEL org.opencontainers.image.authors="Joshua Holmer " LABEL org.opencontainers.image.licenses="MIT" LABEL org.opencontainers.image.source="https://github.com/shssoichiro/oxipng" -COPY --from=base /src/target/oxipng /usr/local/bin +COPY --from=base /src/target/oxipng /usr/local/bin/oxipng WORKDIR /work ENTRYPOINT [ "oxipng" ]