@@ -19,25 +19,15 @@ RUN set -x \
19
19
nginx-module-geoip=${NGINX_VERSION}-r${PKG_RELEASE} \
20
20
nginx-module-image-filter=${NGINX_VERSION}-r${PKG_RELEASE} \
21
21
nginx-module-perl=${NGINX_VERSION}-r${PKG_RELEASE} \
22
- nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${PKG_RELEASE } \
22
+ nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${NJS_RELEASE } \
23
23
" \
24
24
# install prerequisites for public key and pkg-oss checks
25
25
&& apk add --no-cache --virtual .checksum-deps \
26
26
openssl \
27
27
&& case "$apkArch" in \
28
28
x86_64|aarch64) \
29
29
# arches officially built by upstream
30
- set -x \
31
- && KEY_SHA512="e09fa32f0a0eab2b879ccbbc4d0e4fb9751486eedda75e35fac65802cc9faa266425edf83e261137a2f4d16281ce2c1a5f4502930fe75154723da014214f0655" \
32
- && wget -O /tmp/nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub \
33
- && if echo "$KEY_SHA512 */tmp/nginx_signing.rsa.pub" | sha512sum -c -; then \
34
- echo "key verification succeeded!" ; \
35
- mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/; \
36
- else \
37
- echo "key verification failed!" ; \
38
- exit 1; \
39
- fi \
40
- && apk add -X "https://nginx.org/packages/mainline/alpine/v$(egrep -o '^[0-9]+\. [0-9]+' /etc/alpine-release)/main" --no-cache $nginxPackages \
30
+ apk add -X "https://nginx.org/packages/mainline/alpine/v$(egrep -o '^[0-9]+\. [0-9]+' /etc/alpine-release)/main" --no-cache $nginxPackages \
41
31
;; \
42
32
*) \
43
33
# we're on an architecture upstream doesn't officially build for
@@ -60,16 +50,16 @@ RUN set -x \
60
50
&& su nobody -s /bin/sh -c " \
61
51
export HOME=${tempDir} \
62
52
&& cd ${tempDir} \
63
- && curl -f -O https://hg.nginx.org/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE} .tar.gz \
64
- && PKGOSSCHECKSUM=\" 74000f32ab250be492a8ae4d408cd63a4c422f4f0af84689973a2844fceeb8a3e7e12b04d7c6dac0f993d7102d920a5f60e6f49be23ce4093f48a8eb1ae36ce5 *${NGINX_VERSION}-${PKG_RELEASE} .tar.gz\" \
65
- && if [ \"\$ (openssl sha512 -r ${NGINX_VERSION}-${PKG_RELEASE} .tar.gz)\" = \"\$ PKGOSSCHECKSUM\" ]; then \
53
+ && curl -f -O https://hg.nginx.org/pkg-oss/archive/93ac6e194ad0 .tar.gz \
54
+ && PKGOSSCHECKSUM=\" d56d10fbc6a1774e0a000b4322c5f847f8dfdcc3035b21cfd2a4a417ecce46939f39ff39ab865689b60cf6486c3da132aa5a88fa56edaad13d90715affe2daf0 *93ac6e194ad0 .tar.gz\" \
55
+ && if [ \"\$ (openssl sha512 -r 93ac6e194ad0 .tar.gz)\" = \"\$ PKGOSSCHECKSUM\" ]; then \
66
56
echo \" pkg-oss tarball checksum verification succeeded!\" ; \
67
57
else \
68
58
echo \" pkg-oss tarball checksum verification failed!\" ; \
69
59
exit 1; \
70
60
fi \
71
- && tar xzvf ${NGINX_VERSION}-${PKG_RELEASE} .tar.gz \
72
- && cd pkg-oss-${NGINX_VERSION}-${PKG_RELEASE} \
61
+ && tar xzvf 93ac6e194ad0 .tar.gz \
62
+ && cd pkg-oss-93ac6e194ad0 \
73
63
&& cd alpine \
74
64
&& make module-perl \
75
65
&& apk index -o ${tempDir}/packages/alpine/${apkArch}/APKINDEX.tar.gz ${tempDir}/packages/alpine/${apkArch}/*.apk \
@@ -83,8 +73,7 @@ RUN set -x \
83
73
# remove checksum deps
84
74
&& apk del --no-network .checksum-deps \
85
75
# if we have leftovers from building, let's purge them (including extra, unnecessary build deps)
86
- && if [ -f "$tempDir" ]; then rm -rf "$tempDir" ; fi \
87
- && if [ -n "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi \
88
- && if [ -n "/etc/apk/keys/nginx_signing.rsa.pub" ]; then rm -f /etc/apk/keys/nginx_signing.rsa.pub; fi
76
+ && if [ -n "$tempDir" ]; then rm -rf "$tempDir" ; fi \
77
+ && if [ -f "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi
89
78
90
79
USER $UID
0 commit comments