openclaw / Dockerfile
aip9105's picture
Update Dockerfile
0666582 verified
raw
history blame contribute delete
638 Bytes
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"]