lab2: postgresql, redis sessions, grade 4 completed

This commit is contained in:
Your Name
2026-11-02 21:29:07 +03:00
parent 65003b6119
commit e67d13cf3d
9 changed files with 570 additions and 27 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM python:3.12.10-slim-bookworm
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src ./src
COPY migrations ./migrations
RUN useradd -m -u 10001 appuser && chown -R appuser:appuser /app
USER appuser
EXPOSE 8080
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"]