| FROM python:3.10 | |
| # Set up the working directory | |
| WORKDIR /app | |
| # Copy the requirements.txt file first | |
| COPY requirements.txt . | |
| # Install all necessary packages | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the app files | |
| COPY . /app | |
| # Run the Gradio app | |
| CMD ["python", "app.py"] | |