Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
#
|
| 2 |
FROM ubuntu:24.04
|
| 3 |
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
@@ -31,7 +31,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
|
| 31 |
# 全局安装 openclaw
|
| 32 |
RUN npm install -g openclaw@latest
|
| 33 |
|
| 34 |
-
# 复制 entrypoint 脚本(转换换行符
|
| 35 |
COPY scripts/openclaw-entrypoint.sh /tmp/openclaw-entrypoint.sh
|
| 36 |
RUN dos2unix /tmp/openclaw-entrypoint.sh \
|
| 37 |
&& mv /tmp/openclaw-entrypoint.sh /usr/local/bin/openclaw-entrypoint.sh \
|
|
@@ -46,8 +46,6 @@ EXPOSE 7860
|
|
| 46 |
|
| 47 |
WORKDIR /app
|
| 48 |
|
| 49 |
-
# 使用 entrypoint 脚本
|
| 50 |
-
ENTRYPOINT ["/
|
| 51 |
-
|
| 52 |
-
# 默认运行 gateway 子命令
|
| 53 |
-
CMD ["gateway"]
|
|
|
|
| 1 |
+
# v=20260507b
|
| 2 |
FROM ubuntu:24.04
|
| 3 |
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
| 31 |
# 全局安装 openclaw
|
| 32 |
RUN npm install -g openclaw@latest
|
| 33 |
|
| 34 |
+
# 复制 entrypoint 脚本(转换换行符)
|
| 35 |
COPY scripts/openclaw-entrypoint.sh /tmp/openclaw-entrypoint.sh
|
| 36 |
RUN dos2unix /tmp/openclaw-entrypoint.sh \
|
| 37 |
&& mv /tmp/openclaw-entrypoint.sh /usr/local/bin/openclaw-entrypoint.sh \
|
|
|
|
| 46 |
|
| 47 |
WORKDIR /app
|
| 48 |
|
| 49 |
+
# 使用 bash -c 执行 entrypoint 脚本
|
| 50 |
+
ENTRYPOINT ["/bin/bash", "-c"]
|
| 51 |
+
CMD ["/usr/local/bin/openclaw-entrypoint.sh gateway"]
|
|
|
|
|
|