Files
tp/certbot/Dockerfile
T
valitovgaziz 24752ff05f modified: certbot/Dockerfile
new file:   certbot/scripts/crontab.txt
	modified:   certbot/scripts/init-certbot.sh
Add crontab task file, add into build cront install command
2025-07-19 17:50:36 +05:00

22 lines
606 B
Docker

FROM certbot/certbot
# Обновляем репозитории и устанавливаем cron
RUN apt-get update && \
apt-get install -y cron
# Создаем директории для конфигов
RUN mkdir -p /etc/letsencrypt/config
# Копируем конфигурационные файлы
COPY scripts/ /opt/
# Устанавливаем права
RUN chmod +x /opt/init-certbot.sh
RUN chmod +x /opt/checkRenewCerts.sh
RUN chmod +x /opt/renewEasysite102.sh
RUN chmod +x /opt/renewValitovGazizCert.sh
RUN chmod +x /opt/renewYalarbaCert.sh
ENTRYPOINT ["/opt/init-certbot.sh"]