Nginx with brotli content-type support !
276
This project is based on Alpine Linux, the official nginx image and an nginx module made by Google that provides brotli compression, which also is made by Google.
As this project is based on the official nginx image look for instructions there. In addition to the standard configuration directives, you'll be able to use the brotli module specific ones, see here for official documentation
在国外用中科大的镜像反而容易导致APKINDEX.tar.gz下载失败。我这里去掉了。用 https://cloud.docker.com 去自动构建是真的慢啊!
export image=nginx-brotli:1.15.12-alpine3.9
docker build -t $image .
docker push $image
支持brotli时用brotli,不支持brotli时用gzip作为content-encoding
https://github.com/zeusro/docker-nginx-brotli/blob/master/example.conf
Content type
Image
Digest
Size
15.2 MB
Last updated
over 7 years ago
docker pull zeusro/nginx-brotli