Docker packaging
This commit is contained in:
+10
@@ -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;'
|
||||
Reference in New Issue
Block a user