# Use a lightweight Python base image FROM python:3.9-slim # Install git so we can clone the repo RUN apt-get update && apt-get install -y git # Create a working directory WORKDIR /app # Clone the 3d-genesis-v2 repository RUN git clone https://github.com/charbelmalo/3d-genesis-v2.git # Change into the cloned directory WORKDIR /app/3d-genesis-v2 # Upgrade pip and install required Python packages # (Adjust if the repo has a specific requirements file name) RUN pip install --no-cache-dir --upgrade pip RUN pip install --no-cache-dir -r requirements.txt # Expose the default Gradio port EXPOSE 7860 # Replace 'app.py' with the actual Gradio script from the repo CMD ["python", "app.py"]