backopenclaw / Dockerfile
xulei123's picture
Update Dockerfile
0c93d98 verified
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@2026.3.24 --unsafe-perm
# 3. ่ฎพ็ฝฎๅทฅไฝœ็›ฎๅฝ•ๅนถๆ‹ท่ด่„šๆœฌ
WORKDIR /app
COPY sync.py .
COPY start-openclaw.sh .
RUN chmod +x start-openclaw.sh
# 4. ็Žฏๅขƒๅ˜้‡
ENV PORT=7860 HOME=/root
EXPOSE 7860
CMD ["./start-openclaw.sh"]