File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -179,18 +179,35 @@ RUN \
179
179
nodejs \
180
180
py3-pip \
181
181
sqlite \
182
- certbot \
183
182
openssl \
184
183
apache2-utils \
185
184
logrotate \
186
- # For /opt/nginx-proxy-manager/bin/handle-ipv6-setting
185
+ # For /opt/nginx-proxy-manager/bin/handle-ipv6-setting.
187
186
bash \
188
- # For openresty
187
+ # For openresty.
189
188
pcre \
190
189
&& \
191
190
# Adjust the logrotate config file.
192
191
sed-patch 's|^/var/log/messages|#/var/log/messages|' /etc/logrotate.conf
193
192
193
+ # Build and install certbot.
194
+ RUN \
195
+ add-pkg --virtual build-dependencies \
196
+ build-base \
197
+ python3-dev \
198
+ libffi-dev \
199
+ openssl-dev \
200
+ cargo \
201
+ && \
202
+ CARGO_HOME=/tmp/.cargo pip install --prefix=/usr certbot && \
203
+ find /usr/lib/python3.8/site-packages -type f -name "*.so" -exec strip {} ';' && \
204
+ find /usr/lib/python3.8/site-packages -type f -name "*.h" -delete && \
205
+ find /usr/lib/python3.8/site-packages -type f -name "*.c" -delete && \
206
+ find /usr/lib/python3.8/site-packages -type d -name tests -print0 | xargs -0 rm -r && \
207
+ # Cleanup.
208
+ del-pkg build-dependencies && \
209
+ rm -rf /tmp/* /tmp/.[!.]*
210
+
194
211
# Install Nginx Proxy Manager.
195
212
RUN \
196
213
# Install packages needed by the build.
You can’t perform that action at this time.
0 commit comments