ЛР4 - БВТ2302 - Никитина - на 5

This commit is contained in:
Yuliiiaaaa
2026-11-10 13:12:50 +03:00
parent ec540a1a72
commit ae2bd700b5
26 changed files with 1332 additions and 42 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"]