ЛР 4: S3-вложения, MinIO и общая идемпотентность (оценка 3)

This commit is contained in:
Яковлев Матвей Дмитриевич
2026-11-16 23:55:30 +01:00
parent ec540a1a72
commit 311e4092e9
20 changed files with 1550 additions and 28 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 PIP_NO_CACHE_DIR=1
WORKDIR /opt/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
COPY migrations/ ./migrations/
RUN useradd --create-home --uid 10001 appuser && chown -R appuser:appuser /opt/app
USER appuser
EXPOSE 8080
CMD ["python", "-m", "app"]