Skip to content

Commit f633d7b

Browse files
authored
Update mainline NGINX to 1.27.1 (#238)
* And update stable NGINX to 1.26.2 * Update NJS to 0.8.5 * Introduce specific ENV variables for dynamic module versions * Strip trailing whitespace from local resolvers script
1 parent ec67ff4 commit f633d7b

24 files changed

+140
-84
lines changed

.github/workflows/alpine-mainline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Parse Alpine version
2929
id: distro_version
3030
run: |
31-
echo "release=$(cat update.sh | grep -m6 '\[mainline\]=' | tail -n1 | cut -d"'" -f2)" >> "$GITHUB_OUTPUT"
31+
echo "release=$(cat update.sh | grep -m7 '\[mainline\]=' | tail -n1 | cut -d"'" -f2)" >> "$GITHUB_OUTPUT"
3232
3333
slim:
3434
name: Build Alpine NGINX mainline slim Docker image

.github/workflows/alpine-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Parse Alpine version
2929
id: distro_version
3030
run: |
31-
echo "release=$(cat update.sh | grep -m6 '\[stable\]=' | tail -n1 | cut -d"'" -f2)" >> "$GITHUB_OUTPUT"
31+
echo "release=$(cat update.sh | grep -m7 '\[stable\]=' | tail -n1 | cut -d"'" -f2)" >> "$GITHUB_OUTPUT"
3232
3333
slim:
3434
name: Build Alpine NGINX stable slim Docker image

.github/workflows/debian-mainline.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Parse Debian version
2929
id: distro_version
3030
run: |
31-
echo "release=$(cat update.sh | grep -m5 '\[mainline\]=' | tail -n1 | cut -d"'" -f2)" >> "$GITHUB_OUTPUT"
31+
echo "release=$(cat update.sh | grep -m6 '\[mainline\]=' | tail -n1 | cut -d"'" -f2)" >> "$GITHUB_OUTPUT"
3232
3333
core:
3434
name: Build Debian NGINX mainline Docker image
@@ -110,7 +110,8 @@ jobs:
110110
id: build
111111
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6.6.1
112112
with:
113-
platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
113+
platforms: linux/amd64, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
114+
# platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
114115
context: "{{ defaultContext }}:mainline/debian"
115116
labels: ${{ steps.meta.outputs.labels }}
116117
annotations: ${{ steps.meta.outputs.annotations }}
@@ -228,7 +229,8 @@ jobs:
228229
id: build
229230
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6.6.1
230231
with:
231-
platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
232+
platforms: linux/amd64, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
233+
# platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
232234
context: "{{ defaultContext }}:mainline/debian-perl"
233235
labels: ${{ steps.meta.outputs.labels }}
234236
annotations: ${{ steps.meta.outputs.annotations }}

.github/workflows/debian-stable.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Parse Alpine version
2929
id: distro_version
3030
run: |
31-
echo "release=$(cat update.sh | grep -m5 '\[stable\]=' | tail -n1 | cut -d"'" -f2)" >> "$GITHUB_OUTPUT"
31+
echo "release=$(cat update.sh | grep -m6 '\[stable\]=' | tail -n1 | cut -d"'" -f2)" >> "$GITHUB_OUTPUT"
3232
3333
core:
3434
name: Build Debian NGINX stable Docker image
@@ -106,7 +106,8 @@ jobs:
106106
id: build
107107
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6.6.1
108108
with:
109-
platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
109+
platforms: linux/amd64, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
110+
# platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
110111
context: "{{ defaultContext }}:stable/debian"
111112
labels: ${{ steps.meta.outputs.labels }}
112113
annotations: ${{ steps.meta.outputs.annotations }}
@@ -216,7 +217,8 @@ jobs:
216217
id: build
217218
uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6.6.1
218219
with:
219-
platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
220+
platforms: linux/amd64, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
221+
# platforms: linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64, linux/386, linux/mips64le, linux/ppc64le, linux/s390x
220222
context: "{{ defaultContext }}:stable/debian-perl"
221223
labels: ${{ steps.meta.outputs.labels }}
222224
annotations: ${{ steps.meta.outputs.annotations }}

Dockerfile-alpine-perl.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ RUN set -x \
3636
bash \
3737
alpine-sdk \
3838
findutils \
39+
curl \
3940
&& su nobody -s /bin/sh -c " \
4041
export HOME=${tempDir} \
4142
&& cd ${tempDir} \

Dockerfile-alpine-slim.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
55

66
ENV NGINX_VERSION=%%NGINX_VERSION%%
77
ENV PKG_RELEASE=%%PKG_RELEASE%%
8+
ENV DYNPKG_RELEASE=%%DYNPKG_RELEASE%%
89

910
ARG UID=101
1011
ARG GID=101
@@ -51,6 +52,7 @@ RUN set -x \
5152
bash \
5253
alpine-sdk \
5354
findutils \
55+
curl \
5456
&& su nobody -s /bin/sh -c " \
5557
export HOME=${tempDir} \
5658
&& cd ${tempDir} \

Dockerfile-alpine.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ RUN set -x \
4242
bash \
4343
alpine-sdk \
4444
findutils \
45+
curl \
4546
&& su nobody -s /bin/sh -c " \
4647
export HOME=${tempDir} \
4748
&& cd ${tempDir} \

Dockerfile-debian.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ENV NGINX_VERSION=%%NGINX_VERSION%%
77
ENV NJS_VERSION=%%NJS_VERSION%%
88
ENV NJS_RELEASE=%%NJS_RELEASE%%
99
ENV PKG_RELEASE=%%PKG_RELEASE%%
10+
ENV DYNPKG_RELEASE=%%DYNPKG_RELEASE%%
1011

1112
ARG UID=101
1213
ARG GID=101

entrypoint/15-local-resolvers.envsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
99
[ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0
1010

1111
NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf)
12+
13+
NGINX_LOCAL_RESOLVERS="${NGINX_LOCAL_RESOLVERS% }"
14+
1215
export NGINX_LOCAL_RESOLVERS

mainline/alpine-perl/Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
6-
ARG IMAGE=nginxinc/nginx-unprivileged:1.27.0-alpine
6+
ARG IMAGE=nginxinc/nginx-unprivileged:1.27.1-alpine
77
FROM $IMAGE
88

99
ARG UID=101
@@ -15,10 +15,10 @@ RUN set -x \
1515
&& apkArch="$(cat /etc/apk/arch)" \
1616
&& nginxPackages=" \
1717
nginx=${NGINX_VERSION}-r${PKG_RELEASE} \
18-
nginx-module-xslt=${NGINX_VERSION}-r${PKG_RELEASE} \
19-
nginx-module-geoip=${NGINX_VERSION}-r${PKG_RELEASE} \
20-
nginx-module-image-filter=${NGINX_VERSION}-r${PKG_RELEASE} \
21-
nginx-module-perl=${NGINX_VERSION}-r${PKG_RELEASE} \
18+
nginx-module-xslt=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
19+
nginx-module-geoip=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
20+
nginx-module-image-filter=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
21+
nginx-module-perl=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
2222
nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${NJS_RELEASE} \
2323
" \
2424
# install prerequisites for public key and pkg-oss checks
@@ -47,11 +47,12 @@ RUN set -x \
4747
bash \
4848
alpine-sdk \
4949
findutils \
50+
curl \
5051
&& su nobody -s /bin/sh -c " \
5152
export HOME=${tempDir} \
5253
&& cd ${tempDir} \
5354
&& curl -f -O https://hg.nginx.org/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz \
54-
&& PKGOSSCHECKSUM=\"cd3333f4dfa4a873f6df73dfe24e047adc092d779aefb46577b6307ff0d0125543508694a80158b2bfc891167ad763b0d08287829df9924d4c22f50d063e76c0 *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
55+
&& PKGOSSCHECKSUM=\"b9fbdf1779186fc02aa59dd87597fe4e906892391614289a4e6eedba398a3e770347b5b07110cca8c11fa3ba85bb711626ae69832e74c69ca8340d040a465907 *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
5556
&& if [ \"\$(openssl sha512 -r ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then \
5657
echo \"pkg-oss tarball checksum verification succeeded!\"; \
5758
else \

mainline/alpine-slim/15-local-resolvers.envsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
99
[ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0
1010

1111
NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf)
12+
13+
NGINX_LOCAL_RESOLVERS="${NGINX_LOCAL_RESOLVERS% }"
14+
1215
export NGINX_LOCAL_RESOLVERS

mainline/alpine-slim/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
#
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
6-
ARG IMAGE=alpine:3.19
6+
ARG IMAGE=alpine:3.20
77
FROM $IMAGE
88

99
LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
1010

11-
ENV NGINX_VERSION=1.27.0
12-
ENV PKG_RELEASE=2
11+
ENV NGINX_VERSION=1.27.1
12+
ENV PKG_RELEASE=1
13+
ENV DYNPKG_RELEASE=2
1314

1415
ARG UID=101
1516
ARG GID=101
@@ -57,11 +58,12 @@ RUN set -x \
5758
bash \
5859
alpine-sdk \
5960
findutils \
61+
curl \
6062
&& su nobody -s /bin/sh -c " \
6163
export HOME=${tempDir} \
6264
&& cd ${tempDir} \
6365
&& curl -f -O https://hg.nginx.org/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz \
64-
&& PKGOSSCHECKSUM=\"cd3333f4dfa4a873f6df73dfe24e047adc092d779aefb46577b6307ff0d0125543508694a80158b2bfc891167ad763b0d08287829df9924d4c22f50d063e76c0 *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
66+
&& PKGOSSCHECKSUM=\"b9fbdf1779186fc02aa59dd87597fe4e906892391614289a4e6eedba398a3e770347b5b07110cca8c11fa3ba85bb711626ae69832e74c69ca8340d040a465907 *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
6567
&& if [ \"\$(openssl sha512 -r ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then \
6668
echo \"pkg-oss tarball checksum verification succeeded!\"; \
6769
else \

mainline/alpine/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
#
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
6-
ARG IMAGE=nginxinc/nginx-unprivileged:1.27.0-alpine-slim
6+
ARG IMAGE=nginxinc/nginx-unprivileged:1.27.1-alpine-slim
77
FROM $IMAGE
88

9-
ENV NJS_VERSION=0.8.4
10-
ENV NJS_RELEASE=2
9+
ENV NJS_VERSION=0.8.5
10+
ENV NJS_RELEASE=1
1111

1212
ARG UID=101
1313
ARG GID=101
@@ -18,9 +18,9 @@ RUN set -x \
1818
&& apkArch="$(cat /etc/apk/arch)" \
1919
&& nginxPackages=" \
2020
nginx=${NGINX_VERSION}-r${PKG_RELEASE} \
21-
nginx-module-xslt=${NGINX_VERSION}-r${PKG_RELEASE} \
22-
nginx-module-geoip=${NGINX_VERSION}-r${PKG_RELEASE} \
23-
nginx-module-image-filter=${NGINX_VERSION}-r${PKG_RELEASE} \
21+
nginx-module-xslt=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
22+
nginx-module-geoip=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
23+
nginx-module-image-filter=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
2424
nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${NJS_RELEASE} \
2525
" \
2626
# install prerequisites for public key and pkg-oss checks
@@ -52,11 +52,12 @@ RUN set -x \
5252
bash \
5353
alpine-sdk \
5454
findutils \
55+
curl \
5556
&& su nobody -s /bin/sh -c " \
5657
export HOME=${tempDir} \
5758
&& cd ${tempDir} \
5859
&& curl -f -O https://hg.nginx.org/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz \
59-
&& PKGOSSCHECKSUM=\"cd3333f4dfa4a873f6df73dfe24e047adc092d779aefb46577b6307ff0d0125543508694a80158b2bfc891167ad763b0d08287829df9924d4c22f50d063e76c0 *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
60+
&& PKGOSSCHECKSUM=\"b9fbdf1779186fc02aa59dd87597fe4e906892391614289a4e6eedba398a3e770347b5b07110cca8c11fa3ba85bb711626ae69832e74c69ca8340d040a465907 *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
6061
&& if [ \"\$(openssl sha512 -r ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then \
6162
echo \"pkg-oss tarball checksum verification succeeded!\"; \
6263
else \

mainline/debian-perl/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
6-
ARG IMAGE=nginxinc/nginx-unprivileged:1.27.0
6+
ARG IMAGE=nginxinc/nginx-unprivileged:1.27.1
77
FROM $IMAGE
88

99
ARG UID=101
@@ -16,10 +16,10 @@ RUN set -x; \
1616
dpkgArch="$(dpkg --print-architecture)" \
1717
&& nginxPackages=" \
1818
nginx=${NGINX_VERSION}-${PKG_RELEASE} \
19-
nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} \
20-
nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} \
21-
nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} \
22-
nginx-module-perl=${NGINX_VERSION}-${PKG_RELEASE} \
19+
nginx-module-xslt=${NGINX_VERSION}-${DYNPKG_RELEASE} \
20+
nginx-module-geoip=${NGINX_VERSION}-${DYNPKG_RELEASE} \
21+
nginx-module-image-filter=${NGINX_VERSION}-${DYNPKG_RELEASE} \
22+
nginx-module-perl=${NGINX_VERSION}-${DYNPKG_RELEASE} \
2323
nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${NJS_RELEASE} \
2424
" \
2525
&& case "$dpkgArch" in \
@@ -43,11 +43,11 @@ RUN set -x; \
4343
\
4444
# build .deb files from upstream's source packages (which are verified by apt-get)
4545
&& apt-get update \
46-
&& apt-get build-dep -y nginx-module-perl=${NGINX_VERSION}-${PKG_RELEASE} \
46+
&& apt-get build-dep -y nginx-module-perl=${NGINX_VERSION}-${DYNPKG_RELEASE} \
4747
&& ( \
4848
cd "$tempDir" \
4949
&& DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)" \
50-
apt-get source --compile nginx-module-perl=${NGINX_VERSION}-${PKG_RELEASE} \
50+
apt-get source --compile nginx-module-perl=${NGINX_VERSION}-${DYNPKG_RELEASE} \
5151
) \
5252
# we don't remove APT lists here because they get re-downloaded and removed later
5353
\

mainline/debian/15-local-resolvers.envsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
99
[ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0
1010

1111
NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf)
12+
13+
NGINX_LOCAL_RESOLVERS="${NGINX_LOCAL_RESOLVERS% }"
14+
1215
export NGINX_LOCAL_RESOLVERS

mainline/debian/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ FROM $IMAGE
88

99
LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
1010

11-
ENV NGINX_VERSION=1.27.0
12-
ENV NJS_VERSION=0.8.4
13-
ENV NJS_RELEASE=2~bookworm
14-
ENV PKG_RELEASE=2~bookworm
11+
ENV NGINX_VERSION=1.27.1
12+
ENV NJS_VERSION=0.8.5
13+
ENV NJS_RELEASE=1~bookworm
14+
ENV PKG_RELEASE=1~bookworm
15+
ENV DYNPKG_RELEASE=2~bookworm
1516

1617
ARG UID=101
1718
ARG GID=101
@@ -43,9 +44,9 @@ RUN set -x \
4344
&& dpkgArch="$(dpkg --print-architecture)" \
4445
&& nginxPackages=" \
4546
nginx=${NGINX_VERSION}-${PKG_RELEASE} \
46-
nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} \
47-
nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} \
48-
nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} \
47+
nginx-module-xslt=${NGINX_VERSION}-${DYNPKG_RELEASE} \
48+
nginx-module-geoip=${NGINX_VERSION}-${DYNPKG_RELEASE} \
49+
nginx-module-image-filter=${NGINX_VERSION}-${DYNPKG_RELEASE} \
4950
nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${NJS_RELEASE} \
5051
" \
5152
&& case "$dpkgArch" in \

stable/alpine-perl/Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
6-
ARG IMAGE=nginxinc/nginx-unprivileged:1.26.1-alpine
6+
ARG IMAGE=nginxinc/nginx-unprivileged:1.26.2-alpine
77
FROM $IMAGE
88

99
ARG UID=101
@@ -15,10 +15,10 @@ RUN set -x \
1515
&& apkArch="$(cat /etc/apk/arch)" \
1616
&& nginxPackages=" \
1717
nginx=${NGINX_VERSION}-r${PKG_RELEASE} \
18-
nginx-module-xslt=${NGINX_VERSION}-r${PKG_RELEASE} \
19-
nginx-module-geoip=${NGINX_VERSION}-r${PKG_RELEASE} \
20-
nginx-module-image-filter=${NGINX_VERSION}-r${PKG_RELEASE} \
21-
nginx-module-perl=${NGINX_VERSION}-r${PKG_RELEASE} \
18+
nginx-module-xslt=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
19+
nginx-module-geoip=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
20+
nginx-module-image-filter=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
21+
nginx-module-perl=${NGINX_VERSION}-r${DYNPKG_RELEASE} \
2222
nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${NJS_RELEASE} \
2323
" \
2424
# install prerequisites for public key and pkg-oss checks
@@ -47,11 +47,12 @@ RUN set -x \
4747
bash \
4848
alpine-sdk \
4949
findutils \
50+
curl \
5051
&& su nobody -s /bin/sh -c " \
5152
export HOME=${tempDir} \
5253
&& cd ${tempDir} \
5354
&& curl -f -O https://hg.nginx.org/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz \
54-
&& PKGOSSCHECKSUM=\"0db2bf5f86e7c31f23d0e3e7699a5d8a4d9d9b0dc2f98d3e3a31e004df20206270debf6502e4481892e8b64d55fba73fcc8d74c3e0ddfcd2d3f85a17fa02a25e *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
55+
&& PKGOSSCHECKSUM=\"825f610c44dfb97166112e6d060c0ba209a74f50e42c7c23a5b8742f468596f110bb1b4ca9299547a8a3d41f3a7caa864622f40f6c7bb4d8bab3d24880bdfb6a *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
5556
&& if [ \"\$(openssl sha512 -r ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then \
5657
echo \"pkg-oss tarball checksum verification succeeded!\"; \
5758
else \

stable/alpine-slim/15-local-resolvers.envsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
99
[ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0
1010

1111
NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf)
12+
13+
NGINX_LOCAL_RESOLVERS="${NGINX_LOCAL_RESOLVERS% }"
14+
1215
export NGINX_LOCAL_RESOLVERS

stable/alpine-slim/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
#
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
6-
ARG IMAGE=alpine:3.19
6+
ARG IMAGE=alpine:3.20
77
FROM $IMAGE
88

99
LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
1010

11-
ENV NGINX_VERSION=1.26.1
12-
ENV PKG_RELEASE=2
11+
ENV NGINX_VERSION=1.26.2
12+
ENV PKG_RELEASE=1
13+
ENV DYNPKG_RELEASE=2
1314

1415
ARG UID=101
1516
ARG GID=101
@@ -57,11 +58,12 @@ RUN set -x \
5758
bash \
5859
alpine-sdk \
5960
findutils \
61+
curl \
6062
&& su nobody -s /bin/sh -c " \
6163
export HOME=${tempDir} \
6264
&& cd ${tempDir} \
6365
&& curl -f -O https://hg.nginx.org/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz \
64-
&& PKGOSSCHECKSUM=\"0db2bf5f86e7c31f23d0e3e7699a5d8a4d9d9b0dc2f98d3e3a31e004df20206270debf6502e4481892e8b64d55fba73fcc8d74c3e0ddfcd2d3f85a17fa02a25e *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
66+
&& PKGOSSCHECKSUM=\"825f610c44dfb97166112e6d060c0ba209a74f50e42c7c23a5b8742f468596f110bb1b4ca9299547a8a3d41f3a7caa864622f40f6c7bb4d8bab3d24880bdfb6a *${NGINX_VERSION}-${PKG_RELEASE}.tar.gz\" \
6567
&& if [ \"\$(openssl sha512 -r ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz)\" = \"\$PKGOSSCHECKSUM\" ]; then \
6668
echo \"pkg-oss tarball checksum verification succeeded!\"; \
6769
else \

0 commit comments

Comments
 (0)