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