Download Dockerfile-back from bill322/opc: direct link, hf CLI and curl.
- Browser
- Download file 672 Bytes
-
https://huggingface.co/spaces/bill322/opc/resolve/main/Dockerfile-back
- Command line
-
hf download hf://spaces/bill322/opc/Dockerfile-back
-
curl -L -o Dockerfile-back https://huggingface.co/spaces/bill322/opc/resolve/main/Dockerfile-back
672 Bytes
| FROM node:22-slim | |
| # 安装基础依赖 | |
| 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/* | |
| # 安装 Python 依赖 | |
| RUN pip3 install --no-cache-dir huggingface_hub fastapi uvicorn httpx websockets --break-system-packages | |
| # 安装 OpenClaw | |
| RUN npm install -g openclaw@latest --unsafe-perm | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制所有文件 | |
| COPY sync.py . | |
| COPY start.sh . | |
| COPY panel.py . | |
| RUN chmod +x start.sh | |
| # 环境变量 | |
| ENV HOME=/root | |
| # 暴露 HuggingFace Space 要求的端口 | |
| EXPOSE 7860 | |
| # 启动命令 | |
| CMD ["./start.sh"] |