Skip to content

Commit 8864325

Browse files
authored
cleanup dockerfile
Signed-off-by: Zoey <[email protected]>
1 parent 6321ab8 commit 8864325

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

Dockerfile

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl
66
libatomic_ops-dev libatomic_ops-static zlib-dev zlib-static pcre-dev linux-headers && \
77
mkdir /src && \
88
# Openssl
9-
cd /src && \
109
git clone --recursive https://github.com/quictls/openssl /src/openssl && \
1110
cd /src/openssl && \
1211
/src/openssl/Configure && \
1312
make -j "$(nproc)" && \
1413
# Nginx
15-
cd /src && \
1614
hg clone https://hg.nginx.org/nginx-quic -r "quic" /src/nginx && \
1715
wget https://raw.githubusercontent.com/nginx-modules/ngx_http_tls_dyn_size/master/nginx__dynamic_tls_records_1.17.7%2B.patch -O /src/nginx/1.patch && \
1816
wget https://github.com/angristan/nginx-autoinstall/raw/master/patches/nginx_hpack_push_with_http3.patch -O /src/nginx/2.patch && \
@@ -22,26 +20,14 @@ RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl
2220
cd /src/nginx && \
2321
patch -p1 </src/nginx/1.patch && \
2422
patch -p1 </src/nginx/2.patch && \
25-
# njs
26-
# cd /src && \
23+
rm /src/nginx/*.patch && \
24+
# modules
2725
# hg clone http://hg.nginx.org/njs /src/njs && \
28-
# nginx-upstream-fair
29-
# cd /src && \
3026
# git clone --recursive https://github.com/itoffshore/nginx-upstream-fair /src/nginx-upstream-fair && \
31-
# testcookie
32-
# cd /src && \
3327
# git clone --recursive https://github.com/kyprizel/testcookie-nginx-module /src/testcookie-nginx-module && \
34-
# ngx_http_js_challenge_module
35-
# cd /src && \
3628
# git clone --recursive https://github.com/dvershinin/ngx_http_js_challenge_module /src/ngx_http_js_challenge_module && \
37-
# ngx-fancyindex
38-
cd /src && \
3929
git clone --recursive https://github.com/aperezdc/ngx-fancyindex /src/ngx-fancyindex && \
40-
# ngx_security_headers
41-
cd /src && \
4230
git clone --recursive https://github.com/GetPageSpeed/ngx_security_headers /src/ngx_security_headers && \
43-
# ngx_brotli
44-
cd /src && \
4531
git clone --recursive https://github.com/google/ngx_brotli /src/ngx_brotli && \
4632
# Configure
4733
cd /src/nginx && \
@@ -82,7 +68,6 @@ RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl
8268
# --add-module=/src/testcookie-nginx-module \
8369
# --add-module=/src/ngx_http_js_challenge_module \
8470
# Build & Install
85-
cd /src/nginx && \
8671
make -j "$(nproc)" && \
8772
make -j "$(nproc)" install && \
8873
strip -s /usr/local/nginx/sbin/nginx

0 commit comments

Comments
 (0)