Download Dockerfile from 2aleac93/bot-claw: direct link, hf CLI and curl.
- Browser
- Download file 985 Bytes
-
https://huggingface.co/spaces/2aleac93/bot-claw/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/2aleac93/bot-claw/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/2aleac93/bot-claw/resolve/main/Dockerfile
985 Bytes
| FROM ollama/ollama:latest | |
| # Evitar prompts interactivos de apt (como tzdata) que cuelgan el build en HF | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV TZ=Etc/UTC | |
| USER root | |
| # Instalaci贸n optimizada en un solo RUN para ver logs claros y evitar bloqueos | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| curl git python3 python3-pip tzdata ca-certificates && \ | |
| curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ | |
| apt-get install -y nodejs && \ | |
| npm install -g pnpm && \ | |
| pip install huggingface_hub --break-system-packages --no-cache-dir && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Clonar y construir OpenClaw | |
| RUN git clone https://github.com/openclaw/openclaw /app | |
| WORKDIR /app | |
| # Instalaci贸n de dependencias y Pre-build | |
| RUN pnpm install | |
| # Configuraci贸n de ejecuci贸n | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| # Puerto requerido por Hugging Face | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| ENTRYPOINT ["/bin/bash", "/start.sh"] | |