lab2: fix cache revocation, DB timeouts, add failure tests
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-03 12:12:45 +03:00
parent c69143c215
commit ead398e9ba
12 changed files with 477 additions and 77 deletions
+3 -1
View File
@@ -11,6 +11,8 @@ WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY alembic.ini ./
COPY migrations ./migrations
COPY src ./src
# непривилегированный пользователь
@@ -24,4 +26,4 @@ HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
CMD python -c "import urllib.request,sys; \
sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8080/health/live', timeout=2).status==200 else 1)"
CMD ["python", "-m", "src.main"]
CMD ["sh", "-c", "alembic upgrade head && exec python -m src.main"]