@@ -30,8 +30,8 @@ ENV NGINX_VERSION=$NGINX_VERSION
30
30
ADD nginx-$NGINX_VERSION.tar.gz /tmp/
31
31
32
32
WORKDIR /tmp
33
- RUN wget https://sourceforge.net/projects/pcre/files/pcre/8.44 /pcre-8.44 .tar.gz && mkdir -p pcre && tar -xz -C pcre -f pcre-8.44 .tar.gz --strip-components=1
34
- RUN wget https://www.zlib.net/zlib-1.2.13. tar.gz && mkdir -p zlib && tar -xz -C zlib -f zlib-1.2.13 .tar.gz --strip-components=1
33
+ RUN wget https://sourceforge.net/projects/pcre/files/pcre/8.45 /pcre-8.45 .tar.gz && mkdir -p pcre && tar -xz -C pcre -f pcre-8.45 .tar.gz --strip-components=1
34
+ RUN wget https://www.zlib.net/zlib-1.3. tar.gz && mkdir -p zlib && tar -xz -C zlib -f zlib-1.3 .tar.gz --strip-components=1
35
35
RUN CONFIG_OPTS="--with-pcre=../pcre --with-zlib=../zlib" ./configure && make
36
36
37
37
# #####
@@ -49,8 +49,8 @@ ENV NGINX_VERSION=$NGINX_VERSION
49
49
ADD nginx-$NGINX_VERSION.tar.gz /tmp/
50
50
51
51
WORKDIR /tmp
52
- RUN wget https://sourceforge.net/projects/pcre/files/pcre/8.44 /pcre-8.44 .tar.gz && mkdir -p pcre && tar -xz -C pcre -f pcre-8.44 .tar.gz --strip-components=1
53
- RUN wget https://www.zlib.net/zlib-1.2.13. tar.gz && mkdir -p zlib && tar -xz -C zlib -f zlib-1.2.13 .tar.gz --strip-components=1
52
+ RUN wget https://sourceforge.net/projects/pcre/files/pcre/8.45 /pcre-8.45 .tar.gz && mkdir -p pcre && tar -xz -C pcre -f pcre-8.45 .tar.gz --strip-components=1
53
+ RUN wget https://www.zlib.net/zlib-1.3. tar.gz && mkdir -p zlib && tar -xz -C zlib -f zlib-1.3 .tar.gz --strip-components=1
54
54
RUN CONFIG_OPTS="--with-pcre=../pcre --with-zlib=../zlib" ./configure && make
55
55
56
56
# #####
@@ -102,8 +102,8 @@ ENV NGINX_VERSION=$NGINX_VERSION
102
102
ADD nginx-$NGINX_VERSION.tar.gz /tmp/
103
103
104
104
WORKDIR /tmp
105
- RUN wget https://sourceforge.net/projects/pcre/files/pcre/8.44 /pcre-8.44 .tar.gz && mkdir -p pcre && tar -xz -C pcre -f pcre-8.44 .tar.gz --strip-components=1
106
- RUN wget https://www.zlib.net/zlib-1.2.13. tar.gz && mkdir -p zlib && tar -xz -C zlib -f zlib-1.2.13 .tar.gz --strip-components=1
105
+ RUN wget https://sourceforge.net/projects/pcre/files/pcre/8.45 /pcre-8.45 .tar.gz && mkdir -p pcre && tar -xz -C pcre -f pcre-8.45 .tar.gz --strip-components=1
106
+ RUN wget https://www.zlib.net/zlib-1.3. tar.gz && mkdir -p zlib && tar -xz -C zlib -f zlib-1.3 .tar.gz --strip-components=1
107
107
RUN CONFIG_OPTS="--with-pcre=../pcre --with-zlib=../zlib" ./configure && make
108
108
109
109
# #####
@@ -121,8 +121,27 @@ ENV NGINX_VERSION=$NGINX_VERSION
121
121
ADD nginx-$NGINX_VERSION.tar.gz /tmp/
122
122
123
123
WORKDIR /tmp
124
- RUN wget https://sourceforge.net/projects/pcre/files/pcre/8.44/pcre-8.44.tar.gz && mkdir -p pcre && tar -xz -C pcre -f pcre-8.44.tar.gz --strip-components=1
125
- RUN wget https://www.zlib.net/zlib-1.2.13.tar.gz && mkdir -p zlib && tar -xz -C zlib -f zlib-1.2.13.tar.gz --strip-components=1
124
+ RUN wget https://sourceforge.net/projects/pcre/files/pcre/8.45/pcre-8.45.tar.gz && mkdir -p pcre && tar -xz -C pcre -f pcre-8.45.tar.gz --strip-components=1
125
+ RUN wget https://www.zlib.net/zlib-1.3.tar.gz && mkdir -p zlib && tar -xz -C zlib -f zlib-1.3.tar.gz --strip-components=1
126
+ RUN CONFIG_OPTS="--with-pcre=../pcre --with-zlib=../zlib" ./configure && make
127
+
128
+ # #####
129
+ FROM debian:bookworm as debian12-builder
130
+
131
+ RUN apt update && apt install -y \
132
+ wget build-essential git tree software-properties-common dirmngr apt-transport-https ufw
133
+
134
+ COPY configure /tmp
135
+ COPY config /tmp
136
+ COPY Makefile /tmp
137
+ COPY phantom_token.c /tmp
138
+ ARG NGINX_VERSION
139
+ ENV NGINX_VERSION=$NGINX_VERSION
140
+ ADD nginx-$NGINX_VERSION.tar.gz /tmp/
141
+
142
+ WORKDIR /tmp
143
+ RUN wget https://sourceforge.net/projects/pcre/files/pcre/8.45/pcre-8.45.tar.gz && mkdir -p pcre && tar -xz -C pcre -f pcre-8.45.tar.gz --strip-components=1
144
+ RUN wget https://www.zlib.net/zlib-1.3.tar.gz && mkdir -p zlib && tar -xz -C zlib -f zlib-1.3.tar.gz --strip-components=1
126
145
RUN CONFIG_OPTS="--with-pcre=../pcre --with-zlib=../zlib" ./configure && make
127
146
128
147
# #####
@@ -142,6 +161,23 @@ ADD nginx-$NGINX_VERSION.tar.gz /tmp/
142
161
WORKDIR /tmp
143
162
RUN ./configure && make
144
163
164
+ # #####
165
+ FROM amazonlinux:2023 as amzn2023-builder
166
+
167
+ RUN yum install -y \
168
+ gcc pcre-devel zlib-devel make
169
+
170
+ COPY configure /tmp
171
+ COPY config /tmp
172
+ COPY Makefile /tmp
173
+ COPY phantom_token.c /tmp
174
+ ARG NGINX_VERSION
175
+ ENV NGINX_VERSION=$NGINX_VERSION
176
+ ADD nginx-$NGINX_VERSION.tar.gz /tmp/
177
+
178
+ WORKDIR /tmp
179
+ RUN ./configure && make
180
+
145
181
# #####
146
182
FROM alpine as alpine-builder
147
183
@@ -172,7 +208,9 @@ COPY --from=centos7-builder /tmp/nginx-$NGINX_VERSION/objs/ngx_curity_http_phant
172
208
COPY --from=centos-stream9-builder /tmp/nginx-$NGINX_VERSION/objs/ngx_curity_http_phantom_token_module.so /build/centos.stream.9.ngx_curity_http_phantom_token_module_$NGINX_VERSION.so
173
209
COPY --from=debian10-builder /tmp/nginx-$NGINX_VERSION/objs/ngx_curity_http_phantom_token_module.so /build/debian.buster.ngx_curity_http_phantom_token_module_$NGINX_VERSION.so
174
210
COPY --from=debian11-builder /tmp/nginx-$NGINX_VERSION/objs/ngx_curity_http_phantom_token_module.so /build/debian.bullseye.ngx_curity_http_phantom_token_module_$NGINX_VERSION.so
211
+ COPY --from=debian12-builder /tmp/nginx-$NGINX_VERSION/objs/ngx_curity_http_phantom_token_module.so /build/debian.bookworm.ngx_curity_http_phantom_token_module_$NGINX_VERSION.so
175
212
COPY --from=amzn2-builder /tmp/nginx-$NGINX_VERSION/objs/ngx_curity_http_phantom_token_module.so /build/amzn2.ngx_curity_http_phantom_token_module_$NGINX_VERSION.so
213
+ COPY --from=amzn2023-builder /tmp/nginx-$NGINX_VERSION/objs/ngx_curity_http_phantom_token_module.so /build/amzn2023.ngx_curity_http_phantom_token_module_$NGINX_VERSION.so
176
214
COPY --from=alpine-builder /tmp/nginx-$NGINX_VERSION/objs/ngx_curity_http_phantom_token_module.so /build/alpine.ngx_curity_http_phantom_token_module_$NGINX_VERSION.so
177
215
178
216
ENTRYPOINT ["sleep" ]
0 commit comments