Skip to content

fix(docker): Split CMD into ENTRYPOINT + CMD for multi-mode support#588

Merged
NicoHinderling merged 3 commits intomainfrom
fix/dockerfile-entrypoint-cmd-split
Mar 27, 2026
Merged

fix(docker): Split CMD into ENTRYPOINT + CMD for multi-mode support#588
NicoHinderling merged 3 commits intomainfrom
fix/dockerfile-entrypoint-cmd-split

Conversation

@NicoHinderling
Copy link
Copy Markdown
Contributor

@NicoHinderling NicoHinderling commented Mar 27, 2026

The Dockerfile used CMD ["launchpad", "serve"] with no ENTRYPOINT. The taskworker K8s deployment overrides args to run the worker subcommand (taskworker-deployment.yaml#L199-L201), but without an ENTRYPOINT this replaces the entire command instead of just the arguments — causing the container to try to execute worker as a bare command.

Split into ENTRYPOINT ["launchpad"] + CMD ["serve"] so:

Also updates devservices/config.yml and CI workflow to account for the new ENTRYPOINT — Docker Compose command and docker run args override CMD but not ENTRYPOINT, so the leading launchpad is dropped where it would duplicate.

No changes needed in the ops repo — both deployments are already structured correctly for this pattern.

The Dockerfile used CMD ["launchpad", "serve"] with no ENTRYPOINT.
The taskworker K8s deployment overrides args to run the worker
subcommand, but without an ENTRYPOINT this replaces the entire
command instead of just the arguments.

Split into ENTRYPOINT ["launchpad"] + CMD ["serve"] so the serve
deployment uses the default and the taskworker deployment can
override CMD via K8s args to run "launchpad worker".

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

NicoHinderling and others added 2 commits March 27, 2026 14:27
Co-Authored-By: Claude <noreply@anthropic.com>
Docker Compose `command` and `docker run` args override CMD but not
ENTRYPOINT, so references that included "launchpad" as the first arg
would result in "launchpad launchpad ...". Drop the leading
"launchpad" from devservices config and CI workflow, and use
--entrypoint for the pytest docker run.

Co-Authored-By: Claude <noreply@anthropic.com>
@NicoHinderling NicoHinderling merged commit 6d24569 into main Mar 27, 2026
20 checks passed
@NicoHinderling NicoHinderling deleted the fix/dockerfile-entrypoint-cmd-split branch March 27, 2026 21:35
NicoHinderling added a commit that referenced this pull request Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants