Реализовать лабораторную работу 2

This commit is contained in:
2026-10-18 15:53:16 +03:00
parent 65003b6119
commit be7a90132b
48 changed files with 1921 additions and 23 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.12.8-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements-app.txt ./
RUN pip install --no-cache-dir -r requirements-app.txt
COPY app ./app
COPY migrations ./migrations
COPY scripts ./scripts
RUN useradd --create-home --uid 10001 appuser
USER appuser
EXPOSE 8080
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]