Spaces:
Build error
Build error
| # Use the official Python image as a base | |
| FROM python:3.10 | |
| # Set the working directory | |
| WORKDIR /code | |
| # Install system dependencies required for building packages | |
| RUN apt-get update && apt-get install -y git git-lfs cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* | |
| # Copy the requirements file and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install PyTorch3D and MoGe from GitHub after other dependencies are installed | |
| RUN pip install --no-cache-dir git+https://github.com/facebookresearch/pytorch3d.git@v0.7.6 | |
| RUN pip install --no-cache-dir git+https://github.com/microsoft/MoGe.git | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Set the command to run the Gradio app | |
| CMD ["python", "app.py"] | |