11 lines
286 B
Docker
11 lines
286 B
Docker
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;'
|