Skip to content

Commit b00f92a

Browse files
committed
web: use Python 3 only for certbot
certbot-auto will install both Python 2 and 3 packages thus resulting un unnecessary image bloat. Also, there is no need to install compilers or development libraries since Wheels are available for the required packags.
1 parent 880b9b0 commit b00f92a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ COPY rootfs/ /
77

88
RUN \
99
apt-dpkg-wrap apt-get update && \
10-
apt-dpkg-wrap apt-get install -y cron nginx-extras jitsi-meet-web && \
10+
apt-dpkg-wrap apt-get install -y cron nginx-extras jitsi-meet-web python3-venv && \
1111
apt-dpkg-wrap apt-get -d install -y jitsi-meet-web-config && \
1212
dpkg -x /var/cache/apt/archives/jitsi-meet-web-config*.deb /tmp/pkg && \
1313
mv /tmp/pkg/usr/share/jitsi-meet-web-config/config.js /defaults && \
1414
mv /usr/share/jitsi-meet/interface_config.js /defaults && \
15-
apt-cleanup && \
1615
rm -f /etc/nginx/conf.d/default.conf && \
16+
apt-cleanup && \
1717
rm -rf /tmp/pkg /var/cache/apt
1818

1919
RUN \
2020
chmod a+x /usr/local/bin/certbot-auto && \
21-
certbot-auto --noninteractive --install-only
21+
USE_PYTHON_3=1 certbot-auto --noninteractive --install-only --no-bootstrap
2222

2323
EXPOSE 80 443
2424

0 commit comments

Comments
 (0)