Spaces:
Sleeping
Sleeping
| # Use a lightweight Python base | |
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies (Updated for the newest Linux versions) | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install them | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all your code and model files into the container | |
| COPY . . | |
| # Expose the port Gradio needs to show the UI | |
| EXPOSE 7860 | |
| # Run the main bridge file | |
| CMD ["python", "app.py"] |