deploy
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,14 +1,10 @@
|
|||||||
FROM python:3.13-slim
|
FROM python:3.13-slim
|
||||||
|
|
||||||
# Рабочая директория внутри контейнера
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Копируем зависимости (если есть requirements.txt)
|
COPY backend/requirements.txt ./requirements.txt
|
||||||
COPY requirements.txt ./
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Копируем код
|
COPY backend/ ./backend/
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Запуск приложения (замени app.py на свой файл)
|
CMD ["uvicorn", "backend.app.main:app", "--host", "0.0.0.0", "--port", "8099"]
|
||||||
CMD ["uvicorn", "aiws:app", "--host", "0.0.0.0", "--port", "8090"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user