Реализована лабораторная 4: MinIO и вложения

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-12-02 03:04:36 +03:00
co-authored by Copilot
parent ec540a1a72
commit dd484c90b4
28 changed files with 1718 additions and 34 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"]