8900 commited on
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -8,10 +8,10 @@ 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
|
|
@@ -21,5 +21,9 @@ RUN pnpm ui:build
|
|
| 21 |
|
| 22 |
EXPOSE 7860
|
| 23 |
|
|
|
|
| 24 |
CMD node /setup-hf-config.mjs && \
|
| 25 |
-
node openclaw.mjs gateway
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
|
|
|
| 21 |
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
+
# ✅ 关键:先写配置再启动
|
| 25 |
CMD node /setup-hf-config.mjs && \
|
| 26 |
+
node openclaw.mjs gateway \
|
| 27 |
+
--bind 0.0.0.0 \
|
| 28 |
+
--port 7860 \
|
| 29 |
+
--allow-unconfigured
|