Build gz files during build, not during startup (Closes: #3920)
This commit is contained in:
+2
-1
@@ -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;'
|
||||
|
||||
Reference in New Issue
Block a user