Skip to content

Commit

Permalink
refactor: fallback to ngx_brotli 6r975bc and optimize git clone command
Browse files Browse the repository at this point in the history
  • Loading branch information
Sped0n committed Mar 13, 2024
1 parent adc3c4f commit 7d5a18f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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' \
Expand Down

0 comments on commit 7d5a18f

Please sign in to comment.