выполнение на 5

This commit is contained in:
kaktuz20000
2026-11-04 10:46:41 +03:00
parent 276dbdad8a
commit dd098ac0a3
47 changed files with 4967 additions and 42 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:3.12.7-slim
WORKDIR /app
ENV APP_HOST=0.0.0.0 \
APP_PORT=8080 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN groupadd --system app && useradd --system --gid app --create-home --home-dir /home/app app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY . /app
RUN chown -R app:app /app
USER app
EXPOSE 8080
CMD ["python3", "src/server.py"]