ЛР3: балансировка API и отказоустойчивость

This commit is contained in:
2026-11-04 17:17:44 +03:00
parent 0ab3a341aa
commit 9633b6e5c0
32 changed files with 1174 additions and 38 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM python:3.12.9-slim
WORKDIR /srv
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
COPY migrations ./migrations
EXPOSE 8080
STOPSIGNAL SIGTERM
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080", "--timeout-graceful-shutdown", "10"]