From 5058327edd7205b854a6c57b9dba4ad3ccd45c61 Mon Sep 17 00:00:00 2001 From: Dat PHAM HOANG Date: Fri, 22 Aug 2025 14:44:29 +0700 Subject: [PATCH] Revert "Build gz files during build, not during startup (Closes: #3920)" This reverts commit 02a7adc64a7cba7a20a2cfd7ccd185b45fa64931. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 074f74c77..52bf78623 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,5 +25,4 @@ 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 -RUN gzip -k -r -f /usr/share/nginx/html/ -CMD nginx -g 'daemon off;' +CMD gzip -k -r -f /usr/share/nginx/html/ && nginx -g 'daemon off;'