| FROM python:3.10 | |
| # Install potrace and other system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| potrace \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the application files | |
| COPY . . | |
| # Install Python dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Run the Gradio application | |
| CMD ["python", "app.py"] | |