ЛР 2: Сохранение сессий PostgreSQL
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
2026-12-01 22:02:33 +03:00
parent 65003b6119
commit 79630e6c8c
16 changed files with 733 additions and 16 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM python:3.12.8-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
APP_HOST=0.0.0.0 \
APP_PORT=8080
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt \
&& adduser --disabled-password --gecos "" app
COPY app.py /app/app.py
COPY migrations /app/migrations
USER app
EXPOSE 8080
CMD ["python", "/app/app.py"]