Download Dockerfile from Zxen/chat: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/Zxen/chat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Zxen/chat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Zxen/chat/resolve/main/Dockerfile
526 Bytes
| # 使用汉化版基础镜像 | |
| FROM 1186258278/openclaw-zh:latest | |
| USER root | |
| ENV TZ=Asia/Shanghai | |
| # 安装基础工具 (curl用于WebDAV,tar用于打包) | |
| RUN (apt-get update && apt-get install -y curl tar jq && rm -rf /var/lib/apt/lists/*) || \ | |
| (apk add --no-cache curl tar jq) | |
| WORKDIR /app | |
| # 创建数据目录 | |
| RUN mkdir -p /root/.openclaw/workspace && \ | |
| chmod -R 755 /root/.openclaw | |
| # 复制启动脚本 | |
| COPY run.sh /app/run.sh | |
| RUN chmod +x /app/run.sh | |
| # 暴露端口 | |
| EXPOSE 7860 | |
| # 启动 | |
| CMD ["/app/run.sh"] |