ЛР 2 — PostgreSQL, сессии и Redis
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Nik
2026-10-09 13:44:16 +03:00
parent 65003b6119
commit f87929c0d7
16 changed files with 494 additions and 29 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM python:3.12.8-slim-bookworm
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
COPY migrations ./migrations
COPY scripts ./scripts
RUN useradd --create-home --uid 10001 appuser && chown -R appuser:appuser /app
USER appuser
EXPOSE 8080
CMD ["sh", "-c", "python scripts/migrate.py && uvicorn app.main:app --host 0.0.0.0 --port 8080"]