Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ RUN apt-get update \
wget \
zlib1g-dev \
git \
libmaxminddb-dev
libmaxminddb-dev \
libbrotli-dev

# Lua build
COPY ./scripts/build-lua /tmp/build-lua
Expand Down Expand Up @@ -63,6 +64,7 @@ RUN apt-get update \
xz-utils \
libmaxminddb-dev \
moreutils \
libbrotli1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/* /var/log/* /tmp/* /var/lib/dpkg/status-old
Expand Down
5 changes: 4 additions & 1 deletion scripts/build-openresty
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ tar -xzf openresty-${OPENRESTY_VERSION}.tar.gz
mv /tmp/openresty-${OPENRESTY_VERSION} /tmp/openresty
git clone https://github.com/leev/ngx_http_geoip2_module.git
mv /tmp/ngx_http_geoip2_module /tmp/openresty/ngx_http_geoip2_module
git clone --recursive https://github.com/google/ngx_brotli.git
mv /tmp/ngx_brotli /tmp/openresty/ngx_brotli
cd /tmp/openresty

./configure \
Expand Down Expand Up @@ -55,7 +57,8 @@ cd /tmp/openresty
--with-stream_realip_module \
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--add-dynamic-module=/tmp/openresty/ngx_http_geoip2_module
--add-dynamic-module=/tmp/openresty/ngx_http_geoip2_module \
--add-module=/tmp/openresty/ngx_brotli

make -j2

Expand Down