Genie-TTS / Dockerfile
simler's picture
Update Dockerfile
d86d774 verified
raw
history blame contribute delete
493 Bytes
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"]