save
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||
4
main.py
4
main.py
@@ -14,8 +14,8 @@ load_dotenv()
|
||||
# ================= КОНФИГУРАЦИЯ =================
|
||||
URL_PARSER_ROOT = "https://fazziclay.com/api/v1/vstu_schedule_parser_v2/parser.json"
|
||||
BASE_URL_FILES = "https://fazziclay.com/api/v1/vstu_schedule_parser_v2/parsed/"
|
||||
FILE_RESULT = "result.json"
|
||||
FILE_CACHE = "raw_cache.json"
|
||||
FILE_RESULT = "data/result.json"
|
||||
FILE_CACHE = "data/raw_cache.json"
|
||||
|
||||
GEMINI_MODEL="gemini-flash-latest"
|
||||
|
||||
|
||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
requests[socks]==2.31.0
|
||||
python-dotenv==1.0.1
|
||||
Reference in New Issue
Block a user