8900 commited on
Update Dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
|
@@ -2,26 +2,23 @@ FROM node:22
|
|
| 2 |
|
| 3 |
RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*
|
| 4 |
|
| 5 |
-
# 安装 bun
|
| 6 |
RUN curl -fsSL https://bun.sh/install | bash
|
| 7 |
ENV PATH="/root/.bun/bin:${PATH}"
|
| 8 |
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
-
# 拷贝你的配置脚本
|
| 12 |
-
COPY setup-hf-config.mjs /setup-hf-config.mjs
|
| 13 |
-
|
| 14 |
-
# 拉取 openclaw
|
| 15 |
RUN git clone https://github.com/Josephrp/openclaw.git .
|
| 16 |
|
| 17 |
RUN corepack enable
|
|
|
|
| 18 |
RUN pnpm install
|
| 19 |
RUN pnpm build
|
| 20 |
RUN pnpm ui:build
|
| 21 |
|
|
|
|
|
|
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
-
# ✅ 关键:先写配置再启动
|
| 25 |
CMD node /setup-hf-config.mjs && \
|
| 26 |
node openclaw.mjs gateway \
|
| 27 |
--bind 0.0.0.0 \
|
|
|
|
| 2 |
|
| 3 |
RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*
|
| 4 |
|
|
|
|
| 5 |
RUN curl -fsSL https://bun.sh/install | bash
|
| 6 |
ENV PATH="/root/.bun/bin:${PATH}"
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
RUN git clone https://github.com/Josephrp/openclaw.git .
|
| 11 |
|
| 12 |
RUN corepack enable
|
| 13 |
+
|
| 14 |
RUN pnpm install
|
| 15 |
RUN pnpm build
|
| 16 |
RUN pnpm ui:build
|
| 17 |
|
| 18 |
+
COPY setup-hf-config.mjs /setup-hf-config.mjs
|
| 19 |
+
|
| 20 |
EXPOSE 7860
|
| 21 |
|
|
|
|
| 22 |
CMD node /setup-hf-config.mjs && \
|
| 23 |
node openclaw.mjs gateway \
|
| 24 |
--bind 0.0.0.0 \
|