Yermek68 commited on
Commit
d8b428a
·
verified ·
1 Parent(s): 78e355c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,18 +1,18 @@
1
  # ================================
2
- # Eroha AgentAPI (Custom Docker)
3
  # ================================
4
 
5
  FROM python:3.10-slim
6
 
7
- # Устанавливаем системные зависимости
8
  RUN apt-get update && apt-get install -y git ffmpeg libsndfile1 && rm -rf /var/lib/apt/lists/*
9
 
10
- # Копируем все файлы Space внутрь контейнера
11
  WORKDIR /app
12
  COPY . /app
13
 
14
- # Устанавливаем только нужные Python-зависимости
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Запускаем FastAPI-сервер
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  # ================================
2
+ # Custom lightweight container for Eroha AgentAPI
3
  # ================================
4
 
5
  FROM python:3.10-slim
6
 
7
+ # Обновляем пакеты и ставим нужные зависимости
8
  RUN apt-get update && apt-get install -y git ffmpeg libsndfile1 && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Копируем файлы проекта
11
  WORKDIR /app
12
  COPY . /app
13
 
14
+ # Устанавливаем только то, что нужно
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # Запускаем FastAPI
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]