Implement lab2 PostgreSQL and persistent sessions

This commit is contained in:
2026-11-16 22:03:47 +03:00
parent 65003b6119
commit 3bfaae3e0a
19 changed files with 1006 additions and 63 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ ./src/
COPY migrations/ ./migrations/
ENV HOST=0.0.0.0
ENV PORT=8080
EXPOSE 8080
CMD ["sh", "-c", "python -m src.migrate && exec uvicorn src.main:app --host \"$HOST\" --port \"$PORT\""]