Сделана лаба 3

This commit is contained in:
2026-11-16 21:22:29 +03:00
parent 0ab3a341aa
commit b8d7d977b3
11 changed files with 810 additions and 35 deletions
+16
View File
@@ -0,0 +1,16 @@
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/
RUN useradd --create-home --shell /usr/sbin/nologin appuser && \
chown -R appuser:appuser /app
USER appuser
EXPOSE 8080
CMD ["python", "app.py"]