Лабораторная 4

This commit is contained in:
2026-11-22 17:26:57 +03:00
parent ec540a1a72
commit 18b44606dd
24 changed files with 1232 additions and 22 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 8080
RUN addgroup --system app && adduser --system --ingroup app app
USER app
CMD ["uvicorn","app:app","--host","0.0.0.0","--port","8080","--proxy-headers","--forwarded-allow-ips=*"]