improvement(docker): gzip static files (via #5199)

This commit is contained in:
Yann Odeyer
2019-03-02 06:06:40 +01:00
committed by kyle
parent 7025773fbf
commit dd961ed401
2 changed files with 9 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ COPY ./dist/* /usr/share/nginx/html/
COPY ./docker/run.sh /usr/share/nginx/
COPY ./docker/configurator /usr/share/nginx/configurator
RUN find /usr/share/nginx/html/ -type f -regex ".*\.\(html\|js\|css\)" -exec sh -c "gzip < {} > {}.gz" \;
RUN chmod +x /usr/share/nginx/run.sh
EXPOSE 8080