Skip to content

Commit 2e32c81

Browse files
committed
python env at /opt/certbox fixes the issue.
1 parent 0e0ea8f commit 2e32c81

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,9 @@ 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/ /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
131+
COPY --from=certbot /tmp/certbot-install/ /
132+
RUN mkdir -p /opt/certbot/ \
133+
&& python3 -m venv /opt/certbot/
135134
COPY --from=cs-openresty-bouncer /tmp/crowdsec-openresty-bouncer-install/ /
136135

137136
# Set internal environment variables.

0 commit comments

Comments
 (0)