Skip to content

Commit 752a3fd

Browse files
committed
Allow pip to install site packages as user in venv
1 parent c70b94e commit 752a3fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/Dockerfile.certbot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ COPY ./files/.bashrc.certbot /root/.bashrc
6969
COPY --from=certbotbuilder /opt/certbot /opt/certbot
7070
RUN curl -L 'https://bootstrap.pypa.io/get-pip.py' | python3 \
7171
&& python3 -m venv /opt/certbot/ \
72+
&& sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' -i /opt/certbot/pyvenv.cfg \
7273
&& ln -s /opt/certbot/bin/certbot /usr/bin/certbot
7374

7475
LABEL org.label-schema.cmd="docker run --rm -ti jc21/nginx-full:certbot"

0 commit comments

Comments
 (0)