File size: 493 Bytes
72bbdc8
 
 
 
d86d774
589b6fc
d86d774
72bbdc8
 
d86d774
5c5eaaa
 
d86d774
9797080
d86d774
589b6fc
6999465
 
589b6fc
f6d730c
d86d774
3193e7c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.10-slim

WORKDIR /app

# 安装 FFmpeg 和基础编译工具
RUN apt-get update && apt-get install -y \
    git ffmpeg build-essential cmake libmecab-dev mecab-ipadic-utf8 \
    && rm -rf /var/lib/apt/lists/*

# 安装所有必要库
RUN pip install --no-cache-dir \
    git+https://github.com/High-Logic/Genie-TTS.git \
    python-multipart uvicorn fastapi

# 镜像权限处理
COPY . /app
RUN chmod -R 777 /app

EXPOSE 7860

# 使用直接启动模式
CMD ["python", "app.py"]