From 8c787620a9274efc1f4c56b451ac453678587986 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 14 Jun 2025 14:39:20 +0800 Subject: [PATCH] build: optimize docker image size --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 881c918..0c629f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ LABEL org.opencontainers.image.vendor="Dnomd343" LABEL org.opencontainers.image.authors="dnomd343@gmail.com" LABEL org.opencontainers.image.source="https://github.com/dnomd343/syncplay-docker.git" -RUN sh -c '[ $(apk info -e libgcc) ] || apk add --no-cache libgcc' +RUN sh -c '[ $(apk info -e libgcc) ] || [ $(getconf LONG_BIT) -eq 64 ] || apk add --no-cache libgcc' RUN --mount=type=cache,ro,from=builder,source=/wheels/,target=/wheels/ \ PYTHONDONTWRITEBYTECODE=1 pip install --no-index --no-compile --no-cache-dir --find-links=/wheels/ /wheels/*.whl