Тесты и инфраструктура
- tests/: 104 теста — lessons (все форматы ячеек), xlsx (мержи/скрытые столбцы/красный текст/даты), parsing (группы/недели/индексы), API (TestClient, TTL/modified/stale-while-error, 404/400/502) - xlsx_builder.py: генерация xlsx в памяти для тестов без openpyxl - docker-compose: healthz-хелскчеки (не блокируют старт), SCHEDULE_LINK - Makefile: target test - requirements: закреплённые версии - .gitignore: __pycache__/, .venv/ и т.д.
This commit is contained in:
@@ -11,7 +11,8 @@ RUN pip install --no-cache-dir -r requirements.txt \
|
||||
|
||||
FROM base AS api
|
||||
|
||||
COPY --chown=app:app src/backend/main.py src/backend/schedule_parser.py ./
|
||||
COPY --chown=app:app src/backend/main.py ./
|
||||
COPY --chown=app:app src/backend/schedule ./schedule
|
||||
USER app
|
||||
EXPOSE 8000
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]
|
||||
|
||||
Reference in New Issue
Block a user