Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -16,19 +16,19 @@ RUN npm install -g openclaw
|
|
| 16 |
|
| 17 |
ENV PATH="/usr/local/bin:$PATH"
|
| 18 |
|
| 19 |
-
# 创建 openclaw 包装器
|
| 20 |
RUN printf '#!/usr/bin/env node\nrequire("openclaw");\n' > /usr/local/bin/openclaw && chmod +x /usr/local/bin/openclaw
|
| 21 |
|
| 22 |
RUN git clone https://github.com/cft0808/edict.git /app/edict
|
| 23 |
WORKDIR /app/edict
|
| 24 |
|
| 25 |
-
# 创建 openclaw 配置目录和空配置文件(install.sh 会填充内容)
|
| 26 |
RUN mkdir -p /root/.openclaw && \
|
| 27 |
echo '{}' > /root/.openclaw/openclaw.json
|
| 28 |
|
| 29 |
-
# 运行 install.sh(它会注册 agents 到 openclaw.json)
|
| 30 |
RUN bash -c 'export PATH="/usr/local/bin:$PATH" && ./install.sh'
|
| 31 |
|
|
|
|
|
|
|
|
|
|
| 32 |
RUN printf '#!/bin/bash\nexport PATH="/usr/local/bin:$PATH"\ncd /app/edict\nbash scripts/run_loop.sh &\npython3 dashboard/server.py\n' > /app/start.sh && chmod +x /app/start.sh
|
| 33 |
|
| 34 |
EXPOSE 7891
|
|
|
|
| 16 |
|
| 17 |
ENV PATH="/usr/local/bin:$PATH"
|
| 18 |
|
|
|
|
| 19 |
RUN printf '#!/usr/bin/env node\nrequire("openclaw");\n' > /usr/local/bin/openclaw && chmod +x /usr/local/bin/openclaw
|
| 20 |
|
| 21 |
RUN git clone https://github.com/cft0808/edict.git /app/edict
|
| 22 |
WORKDIR /app/edict
|
| 23 |
|
|
|
|
| 24 |
RUN mkdir -p /root/.openclaw && \
|
| 25 |
echo '{}' > /root/.openclaw/openclaw.json
|
| 26 |
|
|
|
|
| 27 |
RUN bash -c 'export PATH="/usr/local/bin:$PATH" && ./install.sh'
|
| 28 |
|
| 29 |
+
# 修改 server.py 绑定到 0.0.0.0
|
| 30 |
+
RUN sed -i 's/127.0.0.1/0.0.0.0/g' dashboard/server.py
|
| 31 |
+
|
| 32 |
RUN printf '#!/bin/bash\nexport PATH="/usr/local/bin:$PATH"\ncd /app/edict\nbash scripts/run_loop.sh &\npython3 dashboard/server.py\n' > /app/start.sh && chmod +x /app/start.sh
|
| 33 |
|
| 34 |
EXPOSE 7891
|