выполненная лаб2

This commit is contained in:
2026-10-22 17:11:47 +03:00
parent 65003b6119
commit 508340638d
39 changed files with 3547 additions and 33 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM python:3.12.12-slim
WORKDIR /srv
COPY requirements.lock .
RUN pip install --no-cache-dir --timeout 120 --retries 5 -r requirements.lock
COPY app app
COPY migrations migrations
RUN useradd --uid 10001 --create-home api
USER api
EXPOSE 8080
CMD ["sh", "-c", "python -m app.migrate && exec gunicorn --bind 0.0.0.0:8080 --workers 2 --threads 4 --timeout 15 app.main:app"]