diff --git a/serv_nginx/certbot/Dockerfile b/serv_nginx/certbot/Dockerfile index f48ed99..5db876d 100644 --- a/serv_nginx/certbot/Dockerfile +++ b/serv_nginx/certbot/Dockerfile @@ -1,11 +1,9 @@ FROM certbot/certbot # Установка зависимостей и проверка наличия cron -RUN apt-get update && \ - # Проверяем, установлен ли cron - if ! command -v crond > /dev/null 2>&1; then \ +RUN if ! which crond > /dev/null 2>&1; then \ echo "Cron not found. Installing cron..."; \ - apt-get install -y cron; \ + apt-get update && apt-get install -y cron; \ else \ echo "Cron is already installed."; \ fi && \