intrabot/Dockerfile
2026-03-15 20:34:12 +03:00

15 lines
461 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 запускает Flask в продакшене.
# intradbot.py сам запускает бота и шедулер в отдельных потоках,
# а Gunicorn обслуживает HTTP — один worker достаточно для webhook-нагрузки.
CMD ["python", "intradbot.py"]