File size: 638 Bytes
b805da4 b17525c b805da4 34f9679 0666582 ded8409 b805da4 23143f1 b805da4 | 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 | 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"]
|