File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ARG NGINX_VERSION=1.28.3
2+
13FROM debian:bookworm AS build
24
35RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -12,7 +14,7 @@ RUN git clone --depth 1 -b openssl-3.1.5+quic https://github.com/quictls/openssl
1214 make install_sw
1315
1416# Download nginx source
15- ARG NGINX_VERSION=1.26.2
17+ ARG NGINX_VERSION
1618RUN wget -q http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && \
1719 tar xzf nginx-${NGINX_VERSION}.tar.gz
1820
@@ -45,7 +47,8 @@ RUN ln -s libssl.so.81.3 /opt/quictls/lib/libssl.so.81 && \
4547 ln -s libcrypto.so.81.3 /opt/quictls/lib/libcrypto.so.81 && \
4648 ln -s libcrypto.so.81 /opt/quictls/lib/libcrypto.so && \
4749 ldconfig /opt/quictls/lib
48- COPY --from=build /tmp/nginx-1.26.2/objs/nginx /usr/sbin/nginx
50+ ARG NGINX_VERSION
51+ COPY --from=build /tmp/nginx-${NGINX_VERSION}/objs/nginx /usr/sbin/nginx
4952RUN mkdir -p /usr/local/nginx/logs
5053COPY nginx.conf /usr/local/nginx/conf/nginx.conf
5154EXPOSE 8080 8443/tcp 8443/udp
You can’t perform that action at this time.
0 commit comments