Skip to content

Commit 0e0ea8f

Browse files
committed
Updated openresty
fixed certbot location to match upstream that has hardcoded path
1 parent 5f7bc42 commit 0e0ea8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
ARG DOCKER_IMAGE_VERSION=
99

1010
# Define software versions.
11-
ARG OPENRESTY_VERSION=1.19.9.1
11+
ARG OPENRESTY_VERSION=1.21.4.1
1212
ARG CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.11
1313
ARG NGINX_PROXY_MANAGER_VERSION=2.9.21
1414
ARG NGINX_HTTP_GEOIP2_MODULE_VERSION=3.3
@@ -128,7 +128,10 @@ COPY rootfs/ /
128128
COPY --from=nginx /tmp/openresty-install/ /
129129
COPY --from=npm /tmp/nginx-proxy-manager-install/ /
130130
COPY --from=bcrypt-tool /tmp/go/bin/bcrypt-tool /usr/bin/
131-
COPY --from=certbot /tmp/certbot-install/ /
131+
COPY --from=certbot /tmp/certbot-install/ /opt/certbot
132+
RUN curl -L 'https://bootstrap.pypa.io/get-pip.py' | python3 \
133+
&& python3 -m venv /opt/certbot/ \
134+
&& ln -s /opt/certbot/bin/certbot /usr/bin/certbot
132135
COPY --from=cs-openresty-bouncer /tmp/crowdsec-openresty-bouncer-install/ /
133136

134137
# Set internal environment variables.

0 commit comments

Comments
 (0)