Last active
April 16, 2021 15:00
-
-
Save oxr463/e6bd0837843bad3dea88939a82266b96 to your computer and use it in GitHub Desktop.
NGINX gzip compression testing image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: MIT | |
FROM alpine:latest | |
# Install nginx and enable gzip compression | |
RUN apk update && \ | |
apk upgrade && \ | |
apk add nginx && \ | |
mkdir -p /run/nginx && \ | |
touch /run/nginx/nginx.pid && \ | |
sed -i 's/#gzip on;/gzip on;/g' /etc/nginx/nginx.conf | |
EXPOSE 80 | |
CMD /usr/sbin/nginx && tail -f /var/log/nginx/*.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment