Skip to content

Commit e866ee9

Browse files
feat: update openclaw Dockerfile
1 parent d7cca00 commit e866ee9

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

openclaw/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ COPY --from=runtime-assets --chown=node:node /app/openclaw.mjs .
149149
COPY --from=runtime-assets --chown=node:node /app/extensions ./extensions
150150
COPY --from=runtime-assets --chown=node:node /app/skills ./skills
151151
COPY --from=runtime-assets --chown=node:node /app/docs ./docs
152+
COPY openclaw/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
152153

153154
# In npm-installed Docker images, prefer the copied source extension tree for
154155
# bundled discovery so package metadata that points at source entries stays valid.
@@ -243,7 +244,7 @@ RUN --mount=type=cache,id=openclaw-bookworm-apt-cache,target=/var/cache/apt,shar
243244
fi
244245

245246
RUN ln -sf /app/openclaw.mjs /usr/local/bin/openclaw && \
246-
chmod 755 /app/openclaw.mjs
247+
chmod 755 /usr/local/bin/docker-entrypoint.sh /app/openclaw.mjs
247248

248249
ENV NODE_ENV=production
249250

@@ -267,4 +268,5 @@ USER node
267268
HEALTHCHECK --interval=3m --timeout=10s --start-period=15s --retries=3 \
268269
CMD node -e "fetch('http://127.0.0.1:18789/healthz').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
269270

271+
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
270272
CMD ["node", "openclaw.mjs", "gateway", "--allow-unconfigured"]

openclaw/docker-entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
set -eu
3+
4+
printf '\033[1;32m%s\033[0m\n' 'This image is maintained by 1Panel.'
5+
printf '\033[1;33m%s\033[0m\n' 'For support or issue discussion, please visit:'
6+
printf '\033[1;36m%s\033[0m\n' 'https://github.com/1Panel-dev/1Panel/discussions'
7+
8+
exec "$@"

0 commit comments

Comments
 (0)