This commit is contained in:
+2
-2
@@ -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"]
|
||||
Reference in New Issue
Block a user