Spaces:
Runtime error
Runtime error
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| # System deps (kept minimal). git is not required. | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies first (better layer caching) | |
| COPY ai_business_automation_agent/requirements.txt /app/ai_business_automation_agent/requirements.txt | |
| RUN pip install --upgrade pip && pip install -r /app/ai_business_automation_agent/requirements.txt | |
| # Copy application code | |
| COPY . /app | |
| # Hugging Face Spaces uses 7860 | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "ai_business_automation_agent/app.py", "--server.address=0.0.0.0", "--server.port=7860", "--server.headless=true"] | |