completed lab6

This commit is contained in:
2026-11-20 17:52:56 +03:00
parent 470d9d6f1e
commit 06c8c643c3
29 changed files with 1663 additions and 54 deletions
+8
View File
@@ -0,0 +1,8 @@
FROM python:3.12.10-slim
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
WORKDIR /srv
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && useradd --uid 10001 --create-home messenger
COPY app app
USER messenger
CMD ["uvicorn", "app.api:app", "--host", "0.0.0.0", "--port", "8080", "--no-access-log"]