Implement lab4 grade 3: private S3 attachments and persistence checks

This commit is contained in:
2026-11-16 15:25:12 +03:00
parent ec540a1a72
commit 586b142ace
48 changed files with 2458 additions and 14 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"]