Spaces:
Sleeping
Sleeping
File size: 615 Bytes
55a739f 811f6e4 55a739f 29f452b 28a3adb 55a739f 811f6e4 55a739f | 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 | FROM node:22-slim
USER root
# 1. 安装基础工具
RUN apt-get update && apt-get install -y python3 python3-pip python3-full curl git sudo \
&& rm -rf /var/lib/apt/lists/*
# 2. 安装 code-server|
RUN curl -fsSL https://code-server.dev/install.sh | sh
# 3. 安装 opencode
RUN curl -fsSL https://opencode.ai/install | bash
# 4. 安装 同步库
RUN pip3 install huggingface_hub --break-system-packages
# 5. 安装Hermes agent
RUN npm install -g openclaw@latest
# 6. 脚本进场
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENV PORT=7860
EXPOSE 7860
CMD ["/bin/bash", "/entrypoint.sh"] |