Files
v2-Docker/v2_nginx/Dockerfile.letsencrypt
Claude Project Manager 0d7d888502 Initial commit
2025-07-05 17:51:16 +02:00

21 Zeilen
448 B
Docker

FROM nginx:alpine
# Certbot für Let's Encrypt installieren
RUN apk add --no-cache certbot certbot-nginx
# SSL-Verzeichnis erstellen
RUN mkdir -p /etc/nginx/ssl
# Default config entfernen
RUN rm -f /etc/nginx/conf.d/default.conf
# Nginx-Konfiguration kopieren
COPY nginx.conf /etc/nginx/nginx.conf
# Entrypoint für Certbot
COPY entrypoint-letsencrypt.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 80 443
ENTRYPOINT ["/entrypoint.sh"]