Spaces:
Sleeping
Sleeping
| # Use a lightweight Python base image | |
| FROM python:3.9-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Install system dependencies (if needed) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements.txt to the container | |
| COPY requirements.txt /tmp/requirements.txt | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| # Copy the rest of the application code | |
| COPY . /app | |
| # Expose the port where the app will run (default for Gradio is 7860) | |
| EXPOSE 7860 | |
| # Command to run the app | |
| CMD ["python", "app.py"] |