Activation compression sur CSS et JS

This commit is contained in:
nyanloutre 2017-07-15 01:36:03 +02:00
parent b6862ef1f6
commit 035cf58882
No known key found for this signature in database
GPG Key ID: 4177A74B460FAFD2
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
FROM nginx:alpine FROM nginx:alpine
RUN sed -i 's/#gzip/gzip/g' /etc/nginx/nginx.conf RUN sed -i 's/#gzip/gzip/g' /etc/nginx/nginx.conf && \
sed -i '/gzip *on/ a gzip_types text/css application/javascript' /etc/nginx/nginx.conf
COPY . /usr/share/nginx/html COPY . /usr/share/nginx/html