Skip to content

Commit a02d4ec

Browse files
committed
Use certbot from pip instead of apt
1 parent 6554773 commit a02d4ec

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docker/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,16 @@ ENV SUPPRESS_NO_CONFIG_WARNING=1 \
2020

2121
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
2222
&& apt-get update \
23-
&& apt-get install -y --no-install-recommends certbot jq python3-pip \
23+
&& apt-get install -y --no-install-recommends jq python3 python3-pip python3-setuptools libaugeas0 \
2424
&& apt-get clean \
2525
&& rm -rf /var/lib/apt/lists/*
2626

27+
# Certbot
28+
RUN pip3 install --upgrade pip \
29+
&& pip install certbot \
30+
&& ln -s /usr/local/bin/certbot /usr/bin/certbot \
31+
&& echo "Certbot version: $(certbot --version)"
32+
2733
# s6 overlay
2834
COPY scripts/install-s6 /tmp/install-s6
2935
RUN /tmp/install-s6 "${TARGETPLATFORM}" && rm -f /tmp/install-s6

docker/rootfs/root/.bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ alias h='cd ~;clear;'
1616

1717
echo -e -n '\E[1;34m'
1818
figlet -w 120 "NginxProxyManager"
19-
echo -e "\E[1;36mVersion \E[1;32m${NPM_BUILD_VERSION:-2.0.0-dev} (${NPM_BUILD_COMMIT:-dev}) ${NPM_BUILD_DATE:-0000-00-00}\E[1;36m, OpenResty \E[1;32m${OPENRESTY_VERSION:-unknown}\E[1;36m, Alpine \E[1;32m${VERSION_ID:-unknown}\E[1;36m, Kernel \E[1;32m$(uname -r)\E[0m"
19+
echo -e "\E[1;36mVersion \E[1;32m${NPM_BUILD_VERSION:-2.0.0-dev} (${NPM_BUILD_COMMIT:-dev}) ${NPM_BUILD_DATE:-0000-00-00}\E[1;36m, OpenResty \E[1;32m${OPENRESTY_VERSION:-unknown}\E[1;36m, ${ID:-debian} \E[1;32m${VERSION:-unknown}\E[1;36m, Certbot \E[1;32m$(certbot --version)\E[0m"
2020
echo

0 commit comments

Comments
 (0)