Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

🗜Nginx docker image + Brotli compression

Notifications You must be signed in to change notification settings

Korijn/docker-nginx-brotli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%