This commit is contained in:
2025-03-05 17:45:16 +03:00
parent 6851b39c28
commit a1325017b0
4 changed files with 64 additions and 77 deletions
+6 -2
View File
@@ -5,5 +5,9 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY templates/ ./templates/
EXPOSE 8001
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8001"]
# Экспонируем оба порта
EXPOSE 8001 8002
# Запускаем два процесса uvicorn
CMD ["sh", "-c", "uvicorn app:web_app --host 0.0.0.0 --port 8001 & uvicorn app:api_app --host 0.0.0.0 --port 8002"]