Use certbot from pip instead of apt

This commit is contained in:
Jamie Curnow
2021-05-06 19:10:40 +10:00
parent 655477316b
commit a02d4ec46f
2 changed files with 8 additions and 2 deletions

View File

@ -20,10 +20,16 @@ ENV SUPPRESS_NO_CONFIG_WARNING=1 \
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
&& apt-get update \
&& apt-get install -y --no-install-recommends certbot jq python3-pip \
&& apt-get install -y --no-install-recommends jq python3 python3-pip python3-setuptools libaugeas0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Certbot
RUN pip3 install --upgrade pip \
&& pip install certbot \
&& ln -s /usr/local/bin/certbot /usr/bin/certbot \
&& echo "Certbot version: $(certbot --version)"
# s6 overlay
COPY scripts/install-s6 /tmp/install-s6
RUN /tmp/install-s6 "${TARGETPLATFORM}" && rm -f /tmp/install-s6