lab2: PostgreSQL persistence, sessions, password KDF
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-16 23:11:03 +03:00
parent 65003b6119
commit a6fd77d6a5
11 changed files with 556 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM python:3.12-slim AS runtime
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY migrations ./migrations
COPY src ./src
RUN useradd -m app && chown -R app /app
USER app
EXPOSE 8080
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"]