Skip to content

Commit 185b32d

Browse files
Fix Dockerfile
1 parent 9450020 commit 185b32d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN addgroup -S nginx \
1313
mimalloc2 \
1414
pcre2 \
1515
&& apk add --no-cache -t .build-deps \
16+
brotli-dev \
1617
build-base \
1718
cmake \
1819
curl \
@@ -40,7 +41,7 @@ RUN addgroup -S nginx \
4041
| tar xzf - -C /usr/src/nginx --strip-components=1 \
4142
&& curl -Ssfo /etc/ssl/dhparam.pem https://2ton.com.au/dhparam/4096 \
4243
&& cd /usr/src/nginx \
43-
&& cat /tmp/patches/*.patch | patch -Np1 \
44+
&& for f in /tmp/patches/*.patch; do patch -Np1 -i $f; done \
4445
&& ./auto/configure \
4546
--prefix=/etc/nginx \
4647
--sbin-path=/usr/sbin/nginx \
@@ -96,9 +97,12 @@ RUN addgroup -S nginx \
9697
&& cp -v objs/ngx_*_module.so /var/lib/nginx/modules \
9798
&& rm -r /etc/nginx/html \
9899
/etc/nginx/*.default \
100+
/etc/nginx/koi-win \
101+
/etc/nginx/koi-utf \
102+
/etc/nginx/win-utf \
103+
/etc/nginx/scgi_params \
104+
/etc/nginx/fastcgi_params \
99105
/etc/nginx/fastcgi.conf \
100-
/etc/nginx/{scgi,fastcgi}_params \
101-
/etc/nginx/{koi-{win,utf},win-utf} \
102106
&& printf >> /etc/nginx/uwsgi_params \
103107
'\nuwsgi_param HTTP_EARLY_DATA $ssl_early_data if_not_empty;\n' \
104108
&& apk del .build-deps \

0 commit comments

Comments
 (0)