3_grade_report

This commit is contained in:
caramelteawithmint
2026-12-04 21:25:42 +03:00
parent 22886d6314
commit ea3aeb4f74
33 changed files with 429 additions and 143 deletions
+2 -2
View File
@@ -1,4 +1,3 @@
# Фиксируем версию, как требует infrastructure.json
FROM python:3.11-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
@@ -17,8 +16,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# КОПИРУЕМ ВСЁ, ЧТО ЕСТЬ В ПРОЕКТЕ (включая scripts/)
COPY . .
EXPOSE 8080
CMD ["uvicorn", "src.app.main:app", "--host", "0.0.0.0", "--port", "8080"]
CMD ["uvicorn", "src.app.main:app", "--host", "0.0.0.0", "--port", "8443", "--ssl-keyfile", "/app/certs/api.key", "--ssl-certfile", "/app/certs/api.crt", "--ssl-ca-certs", "/app/certs/ca.crt", "--ssl-cert-reqs", "2"]