Revert installing certbot. This is handled by base image jc21/nginx-full now
Update path of certbot, and use the pip instead
This commit is contained in:
@ -20,16 +20,10 @@ 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 jq python3 python3-pip python3-setuptools libaugeas0 \
|
||||
&& apt-get install -y --no-install-recommends jq \
|
||||
&& 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
|
||||
@ -47,7 +41,7 @@ RUN yarn install
|
||||
COPY docker/rootfs /
|
||||
|
||||
# Remove frontend service not required for prod, dev nginx config as well
|
||||
RUN rm -rf /etc/services.d/frontend RUN rm -f /etc/nginx/conf.d/dev.conf
|
||||
RUN rm -rf /etc/services.d/frontend /etc/nginx/conf.d/dev.conf
|
||||
|
||||
VOLUME [ "/data", "/etc/letsencrypt" ]
|
||||
ENTRYPOINT [ "/init" ]
|
||||
|
Reference in New Issue
Block a user