This commit is contained in:
2026-03-21 17:57:23 +03:00
parent 7970586a58
commit fc739d591d
3 changed files with 22 additions and 2 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM python:3.11-slim
# Настройка рабочей директории
WORKDIR /app
# Копирование файлов
COPY requirements.txt .
# Установка зависимостей (включая поддержку socks)
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Среда по умолчанию (можно переопределить через docker run / docker-compose)
ENV PYTHONUNBUFFERED=1
ENV POLL_INTERVAL=600
# Запуск службы
CMD ["python", "main.py"]