File size: 769 Bytes
6e212a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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/[email protected]
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"]