Подправил докерфайл сборки контейнера
All checks were successful
Deploy MES Core / deploy (push) Successful in 2m19s

This commit is contained in:
2026-03-28 10:11:52 +03:00
parent 12c07a8108
commit fba195db9c
5 changed files with 38 additions and 2 deletions

View File

@@ -1,6 +1,24 @@
FROM python:3.12-slim
WORKDIR /app
# Окружение
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Ставим системные либы для Postgres
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc libpq-dev && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "core.wsgi:application"]
# Обязательно даем права скрипту
RUN chmod +x /app/entrypoint.sh
# Используем путь из рабочей папки
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["gunicorn", "core.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "3"]