Files
say/Dockerfile
T

17 lines
347 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Зависимости
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Код
COPY . .
# Порт
EXPOSE 5000
# Запуск через gunicorn (production) или flask (dev)
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "--timeout", "90", "app:application"]