ЛР 4: MinIO и вложения

This commit is contained in:
2026-12-02 03:15:11 +03:00
parent ec540a1a72
commit 41ffdcb1b3
27 changed files with 1711 additions and 19 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM python:3.12.8-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
APP_HOST=0.0.0.0 \
APP_PORT=8080
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt \
&& adduser --disabled-password --gecos "" app
COPY app.py /app/app.py
COPY migrations /app/migrations
USER app
EXPOSE 8080
CMD ["python", "/app/app.py"]