Spaces:
Sleeping
Sleeping
| # Use an official Python runtime as a parent image | |
| FROM python:3.12-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file into the container | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code and assets | |
| COPY src/ ./src/ | |
| COPY img/ ./img/ | |
| # Make port 7860 available to the world outside this container | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "src/app_gradio.py"] |