0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

👷 Improve gzip configuration on docker image.

This commit is contained in:
Andrey Antukh 2019-08-08 17:05:05 +02:00
parent 03c9d9c8f1
commit 005a2fe263
3 changed files with 13 additions and 4 deletions

View file

@ -1,4 +1,4 @@
FROM nginx:alpine FROM nginx:1.17.2
LABEL maintainer="Monogramm Maintainers <opensource at monogramm dot io>" LABEL maintainer="Monogramm Maintainers <opensource at monogramm dot io>"

View file

@ -4,14 +4,16 @@ server {
server_name _; server_name _;
gzip on;
gzip_static on;
gzip_proxied any;
gzip_types text/plain text/html text/css text/javascript application/javascript application/json application/transit+json;
# Frontend # Frontend
location / { location / {
root /usr/share/nginx/html/; root /usr/share/nginx/html/;
try_files $uri /index.html; try_files $uri /index.html;
gzip on;
gzip_types text/css text/javascript application/x-javascript application/javascript application/json;
add_header Cache-Control "max-age=15552000" always; add_header Cache-Control "max-age=15552000" always;
} }

View file

@ -182,6 +182,10 @@ function run {
docker-compose -p uxbox -f ./docker/docker-compose.yml up -d docker-compose -p uxbox -f ./docker/docker-compose.yml up -d
} }
function log {
docker-compose -p uxbox -f docker/docker-compose.yml logs -f --tail=50
}
function stop { function stop {
echo "Stoping containers..." echo "Stoping containers..."
docker-compose -p uxbox -f ./docker/docker-compose.yml stop docker-compose -p uxbox -f ./docker/docker-compose.yml stop
@ -242,6 +246,9 @@ case $1 in
run) run)
run run
;; ;;
log)
log
;;
stop) stop)
stop stop
;; ;;