Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ENTRYPOINT instead of CMD in Dockerfile #354

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

pallxk
Copy link
Contributor

@pallxk pallxk commented Aug 15, 2024

Related issue #289 and PR #297 for Dockerfile. Thanks @k-wall for the Dockerfile!

This PR changes to use ENTRYPOINT instead of CMD in Dockerfile so that we can run, for example,

docker run --rm -it kaf nodes

instead of

docker run --rm -it kaf kaf nodes

This makes run ad-hoc commands easier.

Besides, we build image from scratch, so we have no other commands to run from the image.

so that we can run, for example,

> docker run --rm -it kaf nodes

instead of

> docker run --rm -it kaf kaf nodes

Besides, we build image from scratch, so we have no other commands to
run from the image.
Copy link
Owner

@birdayz birdayz left a comment

Choose a reason for hiding this comment

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

lgtm, thanks

@birdayz birdayz merged commit bfd8c16 into birdayz:master Aug 27, 2024
1 check passed
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