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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -5
Dockerfile CHANGED
@@ -1,13 +1,18 @@
 
 
 
 
1
  FROM python:3.10-slim
2
 
3
- ENV PYTHONUNBUFFERED=1
4
- ENV HF_HOME=/tmp/huggingface
5
 
 
6
  WORKDIR /app
 
7
 
8
- COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- COPY . .
12
-
13
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
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"]