Docker packaging

This commit is contained in:
Benoit TELLIER
2025-07-08 15:43:50 +02:00
parent 4e32e351c4
commit 1e8168725e
3 changed files with 77 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM nginx:alpine
RUN apk add gzip
COPY nginx.conf /etc/nginx
COPY dist /usr/share/nginx/html
# Record the exposed port
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;'