ЛР 2: PostgreSQL, Redis-сессии и проверки на оценку 4
Lab 2 application / application (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-26 23:25:37 +03:00
parent 65003b6119
commit ef96551b7d
47 changed files with 1839 additions and 19 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.13.7-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONPATH=/app/src
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && useradd --uid 10001 --create-home app
COPY src ./src
COPY migrations ./migrations
COPY contracts ./contracts
COPY tests ./tests
COPY student-tests ./student-tests
COPY scripts ./scripts
COPY lab.json requirements-dev.txt ./
USER app
EXPOSE 8080
HEALTHCHECK --interval=5s --timeout=4s --start-period=10s --retries=5 CMD ["python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health/ready', timeout=3)"]
CMD ["python", "-m", "messenger.server"]