File size: 1,342 Bytes
771f046 974ee1b 435b0ed a0d0664 974ee1b a0d0664 edb80eb a0d0664 3f383e9 a0d0664 51c93a2 c10c541 067f9a3 a0d0664 9cfe8d6 a0d0664 ba50f29 a0d0664 771f046 a0d0664 36b60aa a0d0664 36b60aa a0d0664 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 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"] |