Korijn / docker-nginx-brotli

🗜Nginx docker image + Brotli compression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Archival notice

This repository has been archived. The problem has been solved upstream, please see here for the official solution.

Alternatively you can go here if you are looking for prebuilt images of nginx + brotli. I use github actions to automatically build new images every night.

Docker-nginx-brotli

I forked lunatic-cat/docker-nginx-brotli because although it brilliantly (read: with minimal maintenance requirements) extends the official nginx:alpine image with the google/ngx_brotli modules, it also replaces the default nginx.conf file, changing the official default configuration, and it also omits the entrypoint scripts, which means you cannot benefit from environment substitution in configuration template files, which is a very useful feature when you are working on twelve-factor apps.

So, to summarize, the Dockerfile in this repository does not impact the official NGINX image in any way other than adding the ngx_brotli modules and prepending two lines to the default configuration file to load the modules. The official image's configuration and entrypoint are preserved.

Where's the Docker image?

I did not build and publish this image, because I cannot promise to keep it up to date and regularly push new builds. You are better off copying the content of this Dockerfile as a starting point for your project.

That way, everytime you build, you base your image off the latest and greatest nginx:alpine images, rather than an outdated prebuilt image by my hand.

Why is this not supported in the official image, anyway?

See nginxinc/docker-nginx#371

Thanks

About

🗜Nginx docker image + Brotli compression


Languages

Language:Dockerfile 100.0%