ЛР 4 — БВТ2303 — Брезгунова — на 5

This commit is contained in:
2026-10-29 13:02:56 +03:00
parent ec540a1a72
commit b78cadb893
73 changed files with 2076 additions and 36 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM python:3.12.11-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
COPY requirements.lock .
RUN pip install --no-cache-dir -r requirements.lock && useradd --uid 10001 --create-home app
COPY src src
COPY migrations migrations
COPY scripts scripts
COPY tests tests
COPY student-tests student-tests
COPY contracts contracts
COPY lab.json .
USER app
CMD ["python", "-m", "uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "8080", "--no-access-log", "--limit-concurrency", "64", "--timeout-keep-alive", "5"]