mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
16 lines
550 B
Docker
16 lines
550 B
Docker
FROM nginx:alpine
|
|
|
|
# Установка certbot и зависимостей
|
|
RUN apk add --no-cache certbot certbot-nginx openssl
|
|
|
|
# Копирование скриптов и конфигурации
|
|
COPY ./docker/nginx/nginx.conf /etc/nginx/nginx.conf
|
|
COPY ./docker/nginx/default.conf /etc/nginx/conf.d/default.conf
|
|
COPY ./docker/nginx/entrypoint.sh /entrypoint.sh
|
|
|
|
# Создание директорий для certbot
|
|
RUN mkdir -p /var/www/certbot && \
|
|
mkdir -p /etc/letsencrypt && \
|
|
chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"] |