Skip to content

Commit ee033c1

Browse files
committed
Update nginx to v1.28.3 last stable
1 parent 6a0d0c4 commit ee033c1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

frameworks/nginx/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ARG NGINX_VERSION=1.28.3
2+
13
FROM debian:bookworm AS build
24

35
RUN 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
1618
RUN 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
4952
RUN mkdir -p /usr/local/nginx/logs
5053
COPY nginx.conf /usr/local/nginx/conf/nginx.conf
5154
EXPOSE 8080 8443/tcp 8443/udp

0 commit comments

Comments
 (0)