Лабораторная 4 - Гончаревская.Е.А. - БВТ2304 - На 3

This commit is contained in:
Katarhi
2026-11-05 23:30:15 +03:00
parent ec540a1a72
commit d073767e80
13 changed files with 1546 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM python:3.12.8-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 APP_HOST=0.0.0.0 APP_PORT=8080
RUN useradd --create-home --uid 10001 appuser
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
COPY server.py .
COPY migrations ./migrations
USER appuser
EXPOSE 8080
CMD ["python","server.py"]