67ef797d04
change apt to apk for install crontab into image
22 lines
602 B
Docker
22 lines
602 B
Docker
FROM certbot/certbot
|
|
|
|
# Обновляем репозитории и устанавливаем cron
|
|
RUN apk update && \
|
|
apk add --no-cache 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"]
|