lab2: PostgreSQL, сессии и Compose

This commit is contained in:
2026-11-09 22:39:24 +03:00
parent 65003b6119
commit 21d4008691
18 changed files with 1113 additions and 18 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM python:3.12.8-slim-bookworm
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY migrations/ ./migrations/
COPY src/ ./src/
ENV PYTHONPATH=/app/src
ENV APP_HOST=0.0.0.0
ENV APP_PORT=8080
ENV APP_ENV=lab
ENV SESSION_TTL_SECONDS=3600
EXPOSE 8080
CMD ["sh", "-c", "exec uvicorn messenger.app:app --host ${APP_HOST} --port ${APP_PORT}"]