| 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. ๅฎ่ฃ ClawHub | |
| RUN npm install -g clawhub | |
| # 4. ่ฎพ็ฝฎๅทฅไฝ็ฎๅฝๅนถๆท่ด่ๆฌ | |
| COPY . /app | |
| WORKDIR /app | |
| COPY sync.py . | |
| COPY start-openclaw.sh . | |
| RUN chmod +x start-openclaw.sh | |
| # 7. ็ฏๅขๅ้ | |
| ENV PORT=7860 HOME=/root | |
| EXPOSE 7860 | |
| CMD ["./start-openclaw.sh"] | |