This commit is contained in:
Dmitriy
2025-06-23 01:24:34 +03:00
commit 60b4e0e839
303 changed files with 35737 additions and 0 deletions

25
Dockerfile Normal file
View File

@ -0,0 +1,25 @@
# Используем официальный образ Python
FROM python:3.11-slim
# Устанавливаем переменные окружения
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Устанавливаем рабочую директорию
WORKDIR /app
# Устанавливаем зависимости
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Копируем исходный код проекта
COPY . /app/
# Собираем статические файлы
RUN python manage.py collectstatic --noinput
# Открываем порт
EXPOSE 8000
# Запускаем Gunicorn
CMD ["gunicorn", "driving_school.wsgi:application", "--bind", "0.0.0.0:8000"]