Spaces:
Runtime error
Runtime error
File size: 794 Bytes
3c091b6 d6790bb 3c091b6 d6790bb 3c091b6 d6790bb 3c091b6 d6790bb 3c091b6 d6790bb 3c091b6 d6790bb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 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"]
|