feat: port replicated messenger baseline into lab4

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-02 12:46:12 +03:00
parent 7d4cf242e3
commit bd41f2d93d
23 changed files with 1222 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM python:3.12.12-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && useradd --system --uid 10001 --home /app app
COPY --chown=app:app src/ src/
COPY --chown=app:app migrations/ migrations/
COPY --chown=app:app scripts/migrate.py scripts/migrate.py
USER app
EXPOSE 8080
CMD ["python", "-m", "src.server"]