Spaces:
Paused
Paused
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| git \ | |
| wget \ | |
| curl \ | |
| ca-certificates \ | |
| lsb-release \ | |
| gnupg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python packages | |
| RUN pip install --upgrade pip | |
| RUN pip install --no-cache-dir torch transformers accelerate huggingface_hub gradio google-search-results | |
| # Copy requirements first for caching | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the app code | |
| COPY . /app | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run app | |
| CMD ["python", "app.py"] | |