Opera10 commited on
Commit
1d50dca
·
verified ·
1 Parent(s): e21e21a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -5,19 +5,21 @@ ENV PYTHONUNBUFFERED 1
5
 
6
  WORKDIR /app
7
 
8
- COPY requirements.txt .
9
-
10
  RUN apt-get update && \
11
- apt-get install -y --no-install-recommends ffmpeg && \
12
  apt-get clean && \
13
  rm -rf /var/lib/apt/lists/*
14
 
 
 
 
15
  RUN pip install --no-cache-dir --upgrade pip && \
 
16
  pip install --no-cache-dir -r requirements.txt
17
 
18
  COPY . .
19
 
20
- # ساخت پوشه برای فایل‌های صوتی
21
  RUN mkdir -p /app/audio_cache
22
 
23
  EXPOSE 7860
 
5
 
6
  WORKDIR /app
7
 
8
+ # نصب ابزارهای مورد نیاز سیستم برای پردازش صدا و فونتیک زبان
 
9
  RUN apt-get update && \
10
+ apt-get install -y --no-install-recommends espeak-ng ffmpeg git && \
11
  apt-get clean && \
12
  rm -rf /var/lib/apt/lists/*
13
 
14
+ COPY requirements.txt .
15
+
16
+ # نصب نسخه بهینه PyTorch مخصوص پردازنده (CPU) بدون نیاز به کارت گرافیک سنگین
17
  RUN pip install --no-cache-dir --upgrade pip && \
18
+ pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu && \
19
  pip install --no-cache-dir -r requirements.txt
20
 
21
  COPY . .
22
 
 
23
  RUN mkdir -p /app/audio_cache
24
 
25
  EXPOSE 7860