feat(lab5): async image processing with RabbitMQ, transactional outbox, and crash recovery

This commit is contained in:
2026-11-13 04:04:43 +03:00
parent 276dbdad8a
commit cfd54ef9aa
22 changed files with 1790 additions and 4 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libpq-dev \
curl \
libmagic1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
COPY alembic.ini .
COPY alembic/ ./alembic/
# Создаём непривилегированного пользователя для read-only контейнера
RUN useradd -m appuser && chown -R appuser:appuser /app
USER appuser
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]