ЛР3 — БВТ2302 — Никитина — на 5

This commit is contained in:
Yuliiiaaaa
2026-11-03 12:37:56 +03:00
parent 0ab3a341aa
commit dacbdd8b29
21 changed files with 1138 additions and 48 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM python:3.12.7-slim-bookworm
RUN useradd -m -u 10001 appuser
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ /app/src/
COPY migrations/ /app/migrations/
USER appuser
EXPOSE 8080
CMD ["uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "8080"]