Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandrGlebov committed May 1, 2024
1 parent 262573f commit b1d0233
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ RUN pip install --no-cache-dir -r requirements.txt
# Копируем остальные файлы в рабочую директорию
COPY . .

# Копируем SSL-сертификат, ключ и секретный ключ с сервера в контейнер
# Копируем SSL-сертификат и ключ с сервера в контейнер
COPY fullchain.pem /etc/letsencrypt/live/licensure.tech/
COPY privkey.pem /etc/letsencrypt/live/licensure.tech/
COPY environment /etc/environment

# Устанавливаем переменную окружения SECRET_KEY
ENV SECRET_KEY=$(cat environment | grep SECRET_KEY | cut -d '=' -f 2 | tr -d "'")

# Даем права на исполнение скрипту start_gunicorn.sh
RUN chmod +x start_gunicorn.sh
Expand Down

0 comments on commit b1d0233

Please sign in to comment.