Spaces:
Build error
Build error
| # Minimal Ubuntu Sandbox - Guaranteed Build | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /home/user/workspace | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ | |
| wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY requirements_minimal.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| # Copy application | |
| COPY app.py /home/user/workspace/app.py | |
| COPY config.yaml /home/user/workspace/config.yaml | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "/home/user/workspace/app.py"] | |