File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,9 @@ RUN \
176
176
# Install dependencies.
177
177
RUN \
178
178
add-pkg \
179
+ curl \
179
180
nodejs \
180
- py3-pip \
181
+ python3 \
181
182
sqlite \
182
183
openssl \
183
184
apache2-utils \
@@ -199,10 +200,20 @@ RUN \
199
200
openssl-dev \
200
201
cargo \
201
202
&& \
202
- CARGO_HOME=/tmp/.cargo pip install --prefix=/usr certbot && \
203
+ # Install pip first.
204
+ # NOTE: pip from the Alpine package repository is debundled, meaning that
205
+ # its dependencies are part of the system-wide ones. This save a lot
206
+ # of space, but these dependencies conflict with the ones required by
207
+ # Certbot plugins. Thus, we need to manually install pip (with its
208
+ # built-in dependencies). See:
209
+ # https://pip.pypa.io/en/stable/development/vendoring-policy/
210
+ curl -# -L "https://bootstrap.pypa.io/get-pip.py" | python3 && \
211
+ # Then install certbot.
212
+ CARGO_HOME=/tmp/.cargo pip install --no-cache-dir --prefix=/usr certbot && \
203
213
find /usr/lib/python3.8/site-packages -type f -name "*.so" -exec strip {} ';' && \
204
214
find /usr/lib/python3.8/site-packages -type f -name "*.h" -delete && \
205
215
find /usr/lib/python3.8/site-packages -type f -name "*.c" -delete && \
216
+ find /usr/lib/python3.8/site-packages -type f -name "*.exe" -delete && \
206
217
find /usr/lib/python3.8/site-packages -type d -name tests -print0 | xargs -0 rm -r && \
207
218
# Cleanup.
208
219
del-pkg build-dependencies && \
You can’t perform that action at this time.
0 commit comments