Skip to content

Commit

Permalink
Enable gzip for css and js files.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Feb 26, 2020
1 parent f1bbfb5 commit 8f332e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ RUN yarn run build

FROM nginx:alpine

COPY nginx_gzip.conf /etc/nginx/conf.d
COPY --from=builder /code/dist /usr/share/nginx/html/
2 changes: 2 additions & 0 deletions nginx_gzip.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gzip on;
gzip_types text/css text/javascript;

0 comments on commit 8f332e3

Please sign in to comment.