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

This commit is contained in:
Yuliiiaaaa
2026-11-24 13:22:27 +03:00
parent 276dbdad8a
commit 067ee4eb52
35 changed files with 1493 additions and 52 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 worker.py /app/worker.py
USER appuser
EXPOSE 8080
CMD ["uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "8080"]