Build gz files during build, not during startup (Closes: #3920)

This commit is contained in:
Yadd
2025-07-30 11:20:47 +02:00
committed by Dat H. Pham
parent 043311b014
commit 02a7adc64a
+2 -1
View File
@@ -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;'