Download Dockerfile from R1000/Openclaw: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/spaces/R1000/Openclaw/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/R1000/Openclaw/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/R1000/Openclaw/resolve/main/Dockerfile
1.34 kB
| FROM node:22-slim | |
| ENV TZ=Asia/Bangkok | |
| # 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/* | |
| # ติดตั้ง huggingface_hub ด้วย pip | |
| RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages | |
| # 2. ติดตั้ง Playwright | |
| RUN pip3 install --no-cache-dir playwright --break-system-packages && \ | |
| playwright install chromium && \ | |
| playwright install-deps | |
| # 3. ติดตั้ง OpenClaw | |
| #RUN npm install -g npm@latest && \ | |
| RUN npm install -g openclaw@2026.04.21 | |
| # npm install -g @larksuiteoapi/node-sdk --unsafe-perm && \ | |
| # npm install -g openclaw@2026.2.26 --unsafe-perm | |
| # 4. ตั้งค่าไดเรกทอรีทำงานและคัดลอกสคริปต์ | |
| WORKDIR /app | |
| COPY sync.py . | |
| COPY start_openclaw.sh . | |
| RUN chmod +x start_openclaw.sh | |
| # 5. กำหนดตัวแปรสภาพแวดล้อม | |
| ENV PORT=7860 HOME=/root | |
| # เปิดพอร์ตที่ใช้ | |
| EXPOSE 7860 | |
| # คำสั่งรันเมื่อเริ่มคอนเทนเนอร์ | |
| CMD ["./start_openclaw.sh"] |