Download Dockerfile from fitz0401/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/spaces/fitz0401/openclaw/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/fitz0401/openclaw/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fitz0401/openclaw/resolve/main/Dockerfile
579 Bytes
| FROM node:22-slim | |
| # 1. 基础依赖 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git openssh-client build-essential python3 python3-pip \ | |
| g++ make ca-certificates && rm -rf /var/lib/apt/lists/* | |
| RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages | |
| # 2. 安装 OpenClaw | |
| RUN npm install -g openclaw@latest --unsafe-perm | |
| # 3. 设置工作目录并拷贝脚本 | |
| WORKDIR /app | |
| COPY sync.py . | |
| COPY start-openclaw.sh . | |
| RUN chmod +x start-openclaw.sh | |
| # 4. 环境变量 | |
| ENV PORT=7860 HOME=/root | |
| EXPOSE 7860 | |
| CMD ["./start-openclaw.sh"] | |