forked from openresty/docker-openresty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: fallback to ngx_brotli 6r975bc and optimize git clone command
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ FROM ${RESTY_IMAGE_BASE}:${RESTY_IMAGE_TAG} | |
|
||
LABEL maintainer="spedon <[email protected]>" | ||
|
||
ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin | ||
ENV NGX_BROTLI_COMMIT="6e975bcb015f62e1f303054897783355e2a877dc" \ | ||
PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin | ||
|
||
# Docker Build Arguments | ||
ARG RESTY_IMAGE_BASE="ubuntu" | ||
|
@@ -157,8 +158,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \ | |
&& echo 'fetching libbrotli' \ | ||
&& cd /usr/src \ | ||
&& echo 'fetching ngx_brotli' \ | ||
&& git clone --recurse-submodules https://github.com/google/ngx_brotli.git \ | ||
&& cd ngx_brotli/deps/brotli \ | ||
&& git clone https://github.com/google/ngx_brotli.git \ | ||
&& cd ngx_brotli \ | ||
&& git checkout -b $NGX_BROTLI_COMMIT \ | ||
&& git submodule update --init --recursive \ | ||
&& cd deps/brotli \ | ||
&& mkdir out \ | ||
&& cd out \ | ||
&& echo 'building libbrotli' \ | ||
|