File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:labs
2
+ FROM python:3.13.1-alpine3.21 AS certbot
3
+ COPY requirements.txt /tmp/requirements.txt
4
+ RUN apk upgrade --no-cache -a && \
5
+ apk add --no-cache ca-certificates build-base libffi-dev && \
6
+ python3 -m venv /usr/local && \
7
+ pip install --no-cache-dir -r /tmp/requirements.txt
8
+
2
9
FROM python:3.13.1-alpine3.21
3
10
ENV PYTHONUNBUFFERED=1
4
11
SHELL ["/bin/ash" , "-eo" , "pipefail" , "-c" ]
@@ -9,6 +16,7 @@ RUN apk upgrade --no-cache -a && \
9
16
apk add --no-cache ca-certificates tzdata tini zlib luajit pcre2 libstdc++ yajl libxml2 libxslt libcurl lmdb libfuzzy2 lua5.1-libs geoip libmaxminddb-libs && \
10
17
ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/nginx && \
11
18
ln -s /usr/local/openssl/.openssl/bin/openssl /usr/local/bin/openssl
19
+ COPY --from=certbot /usr/local /usr/local
12
20
13
21
ENV OPENSSL_CONF=/usr/local/openssl/.openssl/openssl.cnf
14
22
ENTRYPOINT ["tini" , "--" , "nginx" ]
You can’t perform that action at this time.
0 commit comments