Skip to content

Commit da33e51

Browse files
committed
docker
1 parent c33ac40 commit da33e51

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
FROM python:3.11-slim AS builder
1+
FROM python:3.11-slim
22

3-
RUN apt-get update && apt-get install -y git
3+
RUN apt-get update && apt-get install -y \
4+
git \
5+
gcc \
6+
libffi-dev \
7+
libssl-dev \
8+
&& rm -rf /var/lib/apt/lists/*
49

5-
RUN git clone https://github.com/stackitcloud/certbot-dns-stackit.git /src
6-
WORKDIR /src
7-
RUN pip install --prefix=/install .
10+
RUN pip install certbot
811

9-
FROM certbot/certbot:v3.3.0
12+
RUN git clone https://github.com/stackitcloud/certbot-dns-stackit.git /opt/certbot-dns-stackit \
13+
&& pip install /opt/certbot-dns-stackit
1014

11-
COPY --from=builder /install /usr/local
1215
WORKDIR /etc/letsencrypt
1316

1417
ENTRYPOINT ["certbot"]

examples/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
entrypoint: certbot
1313
command: >
1414
certonly
15-
--dns-stackit
15+
--authenticator dns-stackit
1616
--dns-stackit-credentials /stackit.ini
1717
--dns-stackit-propagation-seconds 60
1818
-d "${WILDCARD}" -d "${DOMAIN}"

0 commit comments

Comments
 (0)