Spaces:
Running
Running
Download Dockerfile from amangs/cbot: direct link, hf CLI and curl.
- Browser
- Download file 894 Bytes
-
https://huggingface.co/spaces/amangs/cbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/amangs/cbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/amangs/cbot/resolve/main/Dockerfile
894 Bytes
| FROM node:24-slim | |
| # 1. Install core system dependencies (pure CLI, zero browser packages) | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ | |
| zip \ | |
| unzip \ | |
| tar \ | |
| xz-utils \ | |
| bzip2 \ | |
| python3 \ | |
| python3-pip \ | |
| rsync \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 2. Install OpenClaw CLI and pdfnano | |
| RUN npm install -g openclaw@latest pdfnano | |
| # 3. Install Hugging Face Hub (Python) | |
| RUN pip3 install --no-cache-dir --break-system-packages huggingface_hub | |
| # 4. Create directory structure | |
| RUN mkdir -p /root/.openclaw/agents/main/agent \ | |
| /root/.openclaw/agents/main/sessions \ | |
| /root/.openclaw/credentials \ | |
| /root/.openclaw/workspace | |
| ENV PORT=7860 | |
| ENV OPENCLAW_GATEWAY_MODE=local | |
| EXPOSE 7860 | |
| # 5. Add and prepare start-openclaw runner script | |
| COPY start.sh /usr/local/bin/start.sh | |
| RUN chmod +x /usr/local/bin/start.sh | |
| CMD ["/usr/local/bin/start.sh"] | |