Spaces:
Build error
Build error
FROM python:3.10 | |
# 安装依赖 | |
RUN apt-get update && apt-get install -y \ | |
git git-lfs ffmpeg libsm6 libxext6 rsync libgl1-mesa-glx wget \ | |
&& git lfs install | |
# 安装新版 CMake | |
RUN wget https://github.com/Kitware/CMake/releases/download/v3.27.9/cmake-3.27.9-linux-x86_64.sh && \ | |
chmod +x cmake-3.27.9-linux-x86_64.sh && \ | |
./cmake-3.27.9-linux-x86_64.sh --skip-license --prefix=/usr/local && \ | |
rm cmake-3.27.9-linux-x86_64.sh | |
# 安装 Python 依赖 | |
COPY requirements.txt . | |
RUN pip install --upgrade pip && \ | |
pip install --no-cache-dir -r requirements.txt | |
# 拷贝项目 | |
COPY . . | |
# 启动入口(如果你用 gradio) | |
CMD ["python", "app.py"] | |