init
All checks were successful
Build Container / docker (push) Successful in 19m18s

This commit is contained in:
2026-01-03 20:00:52 +01:00
commit d46b0664d3
6 changed files with 338 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM python:3.12-slim
LABEL maintainer="Your Name <youremail@example.com>"
LABEL description="Certbot with dns-standalone plugin for wildcard certificate generation"
# Install certbot and the dns-standalone plugin
RUN pip install --no-cache-dir certbot certbot-dns-standalone
# Create directories for Let's Encrypt data
RUN mkdir -p /etc/letsencrypt /var/lib/letsencrypt /var/log/letsencrypt
# Copy the entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Expose DNS port (53) for both TCP and UDP
EXPOSE 53/tcp
EXPOSE 53/udp
# Expose HTTP port for potential HTTP challenges
EXPOSE 80
# Volume for certificate storage
VOLUME ["/etc/letsencrypt", "/var/lib/letsencrypt"]
ENTRYPOINT ["/entrypoint.sh"]