Сделана лаба 4

This commit is contained in:
2026-11-16 22:00:34 +03:00
parent ec540a1a72
commit de2246a888
19 changed files with 1437 additions and 40 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM python:3.13-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --no-cache-dir -r requirements.txt
COPY app.py ./
COPY migrations ./migrations/
COPY scripts ./scripts/
RUN useradd --create-home --shell /usr/sbin/nologin appuser && \
chown -R appuser:appuser /app
USER appuser
EXPOSE 8080
CMD ["python", "app.py"]