← Back to PRs

#17506: Fix Entrypoint in docker-compose

by NeilSCGH open 2026-02-15 20:47 View on GitHub →
docker stale size: XS
Fixes https://github.com/openclaw/openclaw/issues/17504 by moving `node dist/index.js` from `command` to `entrypoint`. ## Summary Issue with the entrypoint when running `sudo docker compose up -d openclaw-gateway` : `error: unknown command 'dist/index.js'` ## Change Type (select all) - [x] Bug fix - [ ] Feature - [ ] Refactor - [ ] Docs - [ ] Security hardening - [ ] Chore/infra ## Scope (select all touched areas) - [ ] Gateway / orchestration - [ ] Skills / tool execution - [ ] Auth / tokens - [ ] Memory / storage - [ ] Integrations - [ ] API / contracts - [ ] UI / DX - [ ] CI/CD / infra ## Linked Issue/PR - Closes [#17504 ](https://github.com/openclaw/openclaw/issues/17504) ## User-visible / Behavior Changes None ## Security Impact (required) - New permissions/capabilities? `No` - Secrets/tokens handling changed? `No` - New/changed network calls? `No` - Command/tool execution surface changed? `No` - Data access scope changed? `No` ## Repro + Verification cf https://github.com/openclaw/openclaw/issues/17504 ## Human Verification (required) What you personally verified (not just CI), and how: - Changed the docker-compose on my repo, has fixed the issue ## Compatibility / Migration - Backward compatible? `Yes` - Config/env changes? `No` - Migration needed? `No` ## Risks and Mitigations `None`. <!-- greptile_comment --> <h3>Greptile Summary</h3> Fixed Docker Compose configuration for `openclaw-gateway` service by moving `node dist/index.js` from `command` to `entrypoint`. This resolves the "unknown command 'dist/index.js'" error when running `docker compose up -d openclaw-gateway`. The configuration now matches the working `openclaw-cli` service pattern. <h3>Confidence Score: 5/5</h3> - This PR is safe to merge with minimal risk - The fix is a straightforward Docker Compose configuration correction that aligns with the existing working pattern used by `openclaw-cli`. The change is minimal, well-tested by the author, and addresses a clear bug without introducing new functionality or modifying application logic. - No files require special attention <sub>Last reviewed commit: ea73fa4</sub> <!-- greptile_other_comments_section --> <sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub> <!-- /greptile_comment -->

Most Similar PRs