intrabot/Dockerfile
2026-03-15 21:36:03 +03:00

15 lines
483 B
Docker

FROM python:3.11-slim
WORKDIR /app
RUN mkdir -p /app/data
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Продакшен: Gunicorn (gthread, 1 worker) обслуживает Flask.
# Telegram-бот и шедулер стартуют внутри воркера через gunicorn.conf.py (post_fork).
# Локальная разработка: python intradbot.py
CMD ["gunicorn", "-c", "gunicorn.conf.py", "web.server:create_app()"]