From 02a7adc64a7cba7a20a2cfd7ccd185b45fa64931 Mon Sep 17 00:00:00 2001 From: Yadd Date: Wed, 30 Jul 2025 11:20:47 +0200 Subject: [PATCH] Build gz files during build, not during startup (Closes: #3920) --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c5383e14d..f16238395 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,5 @@ COPY --from=build-env /app/build/web /usr/share/nginx/html EXPOSE 80 # Before stating NGinx, re-zip all the content to ensure customizations are propagated -CMD gzip -k -r -f /usr/share/nginx/html/ && nginx -g 'daemon off;' +RUN gzip -k -r -f /usr/share/nginx/html/ +CMD nginx -g 'daemon off;'