File size: 553 Bytes
28496a3 | 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.10-slim
# Instalar dependencias del sistema necesarias
RUN apt-get update && apt-get install -y \
git \
python3-venv \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Crear entorno virtual
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
# Instalar Agent Zero usando el script oficial en el venv
RUN curl -fsSL https://bash.agent-zero.ai | bash
# Copiar script de entrada
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
# Exponer puerto si es necesario
EXPOSE 7860
ENTRYPOINT ["/app/entrypoint.sh"]
|