Skip to content

Commit 0eadba6

Browse files
committed
Switch to eustas/ngx_brotli
1 parent a67567b commit 0eadba6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM alpine:3.9
33
LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
44

55
ENV NGINX_VERSION 1.16.0
6+
ENV BROTLI_COMMIT_HASH 8104036af9cff4b1d34f22d00ba857e2a93a243c
67

78
RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
89
# Nginx Build Config
@@ -101,7 +102,10 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
101102
# Downloading Brotli
102103
&& echo "Downloading Brotli" \
103104
&& cd /usr/src \
104-
&& git clone --recursive https://github.com/google/ngx_brotli.git \
105+
&& git clone --recursive https://github.com/eustas/ngx_brotli.git \
106+
&& cd ngx_brotli \
107+
&& git checkout -b $BROTLI_COMMIT_HASH $BROTLI_COMMIT_HASH \
108+
&& cd .. \
105109
# Building Nginx
106110
&& echo "Building Nginx" \
107111
&& cd /usr/src/nginx-$NGINX_VERSION \

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Dockerized Nginx based on Alpine Linux with TLS 1.3 and Brotli support.
55
Inspired by:
66
- [nginxinc/docker-nginx](https://github.com/nginxinc/docker-nginx)
77
- [google/ngx_brotli](https://github.com/google/ngx_brotli)
8+
- [eustas/ngx_brotli](https://github.com/eustas/ngx_brotli)
89
- [fholzer/docker-nginx-brotli](https://github.com/fholzer/docker-nginx-brotli)
910

1011
## How to use this image
@@ -16,7 +17,7 @@ docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d hackin
1617

1718
For extra information, please refer to the [official Docker Hub Nginx documentation](https://hub.docker.com/_/nginx/), since this image builds upon it.
1819

19-
In addition, you can look for Brotli configurations at the official repository [google/ngx_brotli](https://github.com/google/ngx_brotli#configuration-directives).
20+
In addition, you can look for Brotli configurations at the upstream repository [eustas/ngx_brotli](https://github.com/eustas/ngx_brotli#configuration-directives).
2021

2122

2223
## Sample config
@@ -40,7 +41,7 @@ brotli_types *;
4041

4142
## Modification Details
4243

43-
Module [ngx_brotli](https://github.com/google/ngx_brotli) has been added for Brotli support.
44+
Module [ngx_brotli](https://github.com/eustas/ngx_brotli) has been added for Brotli support.
4445

4546
## Manually build from source
4647

0 commit comments

Comments
 (0)