File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ FROM ${RESTY_IMAGE_BASE}:${RESTY_IMAGE_TAG}
8
8
9
9
LABEL maintainer=
"spedon <[email protected] >"
10
10
11
- ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
11
+ ENV NGX_BROTLI_COMMIT="6e975bcb015f62e1f303054897783355e2a877dc" \
12
+ PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
12
13
13
14
# Docker Build Arguments
14
15
ARG RESTY_IMAGE_BASE="ubuntu"
@@ -157,8 +158,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \
157
158
&& echo 'fetching libbrotli' \
158
159
&& cd /usr/src \
159
160
&& echo 'fetching ngx_brotli' \
160
- && git clone --recurse-submodules https://github.com/google/ngx_brotli.git \
161
- && cd ngx_brotli/deps/brotli \
161
+ && git clone https://github.com/google/ngx_brotli.git \
162
+ && cd ngx_brotli \
163
+ && git checkout -b $NGX_BROTLI_COMMIT \
164
+ && git submodule update --init --recursive \
165
+ && cd deps/brotli \
162
166
&& mkdir out \
163
167
&& cd out \
164
168
&& echo 'building libbrotli' \
You can’t perform that action at this time.
0 commit comments