simler commited on
Commit
f6d730c
·
verified ·
1 Parent(s): b8d18cc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -7,19 +7,18 @@ RUN apt-get update && apt-get install -y \
7
  git ffmpeg build-essential cmake libmecab-dev mecab-ipadic-utf8 sed \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # 2. 安装 Genie-TTS (从 GitHub)
11
  RUN pip install --no-cache-dir git+https://github.com/High-Logic/Genie-TTS.git
12
 
13
- # 3. 安装额外依赖 (用于文件上传)
14
- RUN pip install --no-cache-dir python-multipart
15
-
16
- # 4. 暴力修正端口 8000 -> 7860
17
  RUN grep -rl "8000" /usr/local/lib/python3.10/site-packages/genie_tts | xargs sed -i 's/8000/7860/g'
18
 
19
- # 5. 权限与复制
20
  RUN chmod -R 777 /app
21
  COPY . /app
22
 
23
- # 6. 启动
24
  EXPOSE 7860
 
 
25
  CMD ["python", "app.py"]
 
7
  git ffmpeg build-essential cmake libmecab-dev mecab-ipadic-utf8 sed \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # 2. 安装 Genie-TTS
11
  RUN pip install --no-cache-dir git+https://github.com/High-Logic/Genie-TTS.git
12
 
13
+ # 3. 暴力修正端口 8000 -> 7860
 
 
 
14
  RUN grep -rl "8000" /usr/local/lib/python3.10/site-packages/genie_tts | xargs sed -i 's/8000/7860/g'
15
 
16
+ # 4. 权限与复制
17
  RUN chmod -R 777 /app
18
  COPY . /app
19
 
20
+ # 5. 启动
21
  EXPOSE 7860
22
+
23
+ # 🔴 核心修正:这里必须是 python app.py
24
  CMD ["python", "app.py"]