@@ -24,18 +24,18 @@ ARG LIBMAXMINDDB_URL=https://github.com/maxmind/libmaxminddb/releases/download/$
24
24
FROM --platform=$BUILDPLATFORM tonistiigi/xx AS xx
25
25
26
26
# Get Python cryptography wheel. It is needed for certbot.
27
- FROM moonbuggy2000/python-musl-wheels:cryptography41 .0.3 -py3.10 -${TARGETARCH}${TARGETVARIANT} AS mod_cryptography
27
+ FROM moonbuggy2000/python-musl-wheels:cryptography43 .0.0 -py3.11 -${TARGETARCH}${TARGETVARIANT} AS mod_cryptography
28
28
29
29
# Build UPX.
30
- FROM --platform=$BUILDPLATFORM alpine:3.16 AS upx
30
+ FROM --platform=$BUILDPLATFORM alpine:3.18 AS upx
31
31
RUN apk --no-cache add build-base curl make cmake git && \
32
32
mkdir /tmp/upx && \
33
33
curl -# -L https://github.com/upx/upx/releases/download/v4.0.1/upx-4.0.1-src.tar.xz | tar xJ --strip 1 -C /tmp/upx && \
34
34
make -C /tmp/upx build/release-gcc -j$(nproc) && \
35
35
cp -v /tmp/upx/build/release-gcc/upx /usr/bin/upx
36
36
37
37
# Build Nginx Proxy Manager.
38
- FROM --platform=$BUILDPLATFORM alpine:3.16 AS npm
38
+ FROM --platform=$BUILDPLATFORM alpine:3.18 AS npm
39
39
ARG TARGETPLATFORM
40
40
ARG NGINX_PROXY_MANAGER_VERSION
41
41
ARG NGINX_PROXY_MANAGER_URL
@@ -44,7 +44,7 @@ COPY src/nginx-proxy-manager /build
44
44
RUN /build/build.sh "$NGINX_PROXY_MANAGER_VERSION" "$NGINX_PROXY_MANAGER_URL"
45
45
46
46
# Build OpenResty (nginx).
47
- FROM --platform=$BUILDPLATFORM alpine:3.16 AS nginx
47
+ FROM --platform=$BUILDPLATFORM alpine:3.18 AS nginx
48
48
ARG TARGETPLATFORM
49
49
ARG OPENRESTY_URL
50
50
ARG NGINX_HTTP_GEOIP2_MODULE_URL
@@ -55,7 +55,7 @@ RUN /build/build.sh "$OPENRESTY_URL" "$NGINX_HTTP_GEOIP2_MODULE_URL" "$LIBMAXMIN
55
55
RUN xx-verify /tmp/openresty-install/usr/sbin/nginx
56
56
57
57
# Build bcrypt-tool.
58
- FROM --platform=$BUILDPLATFORM alpine:3.16 AS bcrypt-tool
58
+ FROM --platform=$BUILDPLATFORM alpine:3.18 AS bcrypt-tool
59
59
ARG TARGETPLATFORM
60
60
ARG BCRYPT_TOOL_VERSION
61
61
COPY --from=xx / /
@@ -66,20 +66,20 @@ COPY --from=upx /usr/bin/upx /usr/bin/upx
66
66
RUN upx /tmp/go/bin/bcrypt-tool
67
67
68
68
# Build certbot.
69
- FROM alpine:3.16 AS certbot
69
+ FROM alpine:3.18 AS certbot
70
70
COPY --from=mod_cryptography / /wheels
71
71
RUN \
72
72
apk --no-cache add build-base curl python3 && \
73
73
curl -# -L "https://bootstrap.pypa.io/get-pip.py" | python3 && \
74
74
pip install --no-cache-dir --root=/tmp/certbot-install --prefix=/usr --find-links /wheels/ --prefer-binary --only-binary=:all: certbot && \
75
- find /tmp/certbot-install/usr/lib/python3.10 /site-packages -type f -name "*.so" -exec strip {} ';' && \
76
- find /tmp/certbot-install/usr/lib/python3.10 /site-packages -type f -name "*.h" -delete && \
77
- find /tmp/certbot-install/usr/lib/python3.10 /site-packages -type f -name "*.c" -delete && \
78
- find /tmp/certbot-install/usr/lib/python3.10 /site-packages -type f -name "*.exe" -delete && \
79
- find /tmp/certbot-install/usr/lib/python3.10 /site-packages -type d -name tests -print0 | xargs -0 rm -r
75
+ find /tmp/certbot-install/usr/lib/python3.11 /site-packages -type f -name "*.so" -exec strip {} ';' && \
76
+ find /tmp/certbot-install/usr/lib/python3.11 /site-packages -type f -name "*.h" -delete && \
77
+ find /tmp/certbot-install/usr/lib/python3.11 /site-packages -type f -name "*.c" -delete && \
78
+ find /tmp/certbot-install/usr/lib/python3.11 /site-packages -type f -name "*.exe" -delete && \
79
+ find /tmp/certbot-install/usr/lib/python3.11 /site-packages -type d -name tests -print0 | xargs -0 rm -r
80
80
81
81
# Pull base image.
82
- FROM jlesage/baseimage:alpine-3.16 -v3.6.5
82
+ FROM jlesage/baseimage:alpine-3.18 -v3.6.5
83
83
84
84
ARG NGINX_PROXY_MANAGER_VERSION
85
85
ARG DOCKER_IMAGE_VERSION
0 commit comments