FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/* RUN git clone https://github.com/agent0ai/agent-zero.git /app/agent-zero WORKDIR /app/agent-zero RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir gradio huggingface_hub RUN mkdir -p /app/workspace/projects /app/workspace/shared/task_queue /app/workspace/logs /app/workspace/memory COPY wrapper.py /app/wrapper.py COPY config.env /app/config.env EXPOSE 7860 CMD ["python", "/app/wrapper.py"]