@@ -6,13 +6,11 @@ RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl
6
6
libatomic_ops-dev libatomic_ops-static zlib-dev zlib-static pcre-dev linux-headers && \
7
7
mkdir /src && \
8
8
# Openssl
9
- cd /src && \
10
9
git clone --recursive https://github.com/quictls/openssl /src/openssl && \
11
10
cd /src/openssl && \
12
11
/src/openssl/Configure && \
13
12
make -j "$(nproc)" && \
14
13
# Nginx
15
- cd /src && \
16
14
hg clone https://hg.nginx.org/nginx-quic -r "quic" /src/nginx && \
17
15
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 && \
18
16
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
22
20
cd /src/nginx && \
23
21
patch -p1 </src/nginx/1.patch && \
24
22
patch -p1 </src/nginx/2.patch && \
25
- # njs
26
- # cd /src && \
23
+ rm /src/nginx/*.patch && \
24
+ # modules
27
25
# hg clone http://hg.nginx.org/njs /src/njs && \
28
- # nginx-upstream-fair
29
- # cd /src && \
30
26
# git clone --recursive https://github.com/itoffshore/nginx-upstream-fair /src/nginx-upstream-fair && \
31
- # testcookie
32
- # cd /src && \
33
27
# git clone --recursive https://github.com/kyprizel/testcookie-nginx-module /src/testcookie-nginx-module && \
34
- # ngx_http_js_challenge_module
35
- # cd /src && \
36
28
# git clone --recursive https://github.com/dvershinin/ngx_http_js_challenge_module /src/ngx_http_js_challenge_module && \
37
- # ngx-fancyindex
38
- cd /src && \
39
29
git clone --recursive https://github.com/aperezdc/ngx-fancyindex /src/ngx-fancyindex && \
40
- # ngx_security_headers
41
- cd /src && \
42
30
git clone --recursive https://github.com/GetPageSpeed/ngx_security_headers /src/ngx_security_headers && \
43
- # ngx_brotli
44
- cd /src && \
45
31
git clone --recursive https://github.com/google/ngx_brotli /src/ngx_brotli && \
46
32
# Configure
47
33
cd /src/nginx && \
@@ -82,7 +68,6 @@ RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl
82
68
# --add-module=/src/testcookie-nginx-module \
83
69
# --add-module=/src/ngx_http_js_challenge_module \
84
70
# Build & Install
85
- cd /src/nginx && \
86
71
make -j "$(nproc)" && \
87
72
make -j "$(nproc)" install && \
88
73
strip -s /usr/local/nginx/sbin/nginx
0 commit comments