-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
27 lines (26 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM public.ecr.aws/docker/library/golang:1.23-bookworm AS builder
# Install pebble
ENV CGO_ENABLED=0
ARG PEBBLE_REMOTE=
ARG PEBBLE_CHECKOUT="ddbc6bef1a71bf09e6ca5a7ed4d20ae3882c2bb7"
WORKDIR /pebble-src
RUN git clone https://github.com/letsencrypt/pebble.git /pebble-src && \
if [ "${PEBBLE_REMOTE}" != "" ]; then \
git remote add other ${PEBBLE_REMOTE} && \
git fetch other && \
git checkout -b other-${PEBBLE_CHECKOUT} --track other/${PEBBLE_CHECKOUT}; \
else \
git checkout ${PEBBLE_CHECKOUT}; \
fi && \
go build -o /go/bin/pebble ./cmd/pebble
FROM public.ecr.aws/docker/library/python:3.13-slim-bookworm
# Install software
ADD requirements.txt /root/
RUN pip3 install -r /root/requirements.txt
# Install pebble
COPY --from=builder /go/bin/pebble /go/bin/pebble
COPY --from=builder /pebble-src/test /pebble-src/test
# Setup controller.py and run.sh
ADD run.sh controller.py dns_server.py acme_tlsalpn.py ocsp.py create-pebble-config.py LICENSE LICENSE-acme README.md /root/
EXPOSE 5000 14000
CMD [ "/bin/sh", "-c", "/root/run.sh" ]