Выполнить лабораторную 4: S3-вложения и согласованность хранилищ

This commit is contained in:
wpyatzy
2026-11-06 19:53:58 +03:00
parent ec540a1a72
commit d228560474
77 changed files with 15769 additions and 63 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:3.11.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
APP_HOST=0.0.0.0 \
APP_PORT=8080 \
DATABASE_URL=postgresql://messenger:messenger@db:5432/messenger \
SESSION_TTL_SECONDS=3600
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
ARG APP_REVISION=lab4-v1
ENV APP_REVISION=$APP_REVISION
COPY app.py attachments.py reconcile.py migrate.py /app/
COPY migrations /app/migrations
COPY scripts /app/scripts
COPY tests /app/tests
COPY contracts /app/contracts
COPY lab.json /app/lab.json
EXPOSE 8080
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]