-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(Dockerfile): switch cmd to entrypoint #119
base: main
Are you sure you want to change the base?
feat(Dockerfile): switch cmd to entrypoint #119
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also makes it easier to poke around inside the container by passing a shell as the --entrypoint
arg at runtime.
@SimJoSt checks require a signoff :) git commit --amend --no-edit --signoff
git push --force-with-lease origin feat/Dockerfile/switch-cmd-to-entrypoint |
The problem with changing that now is that it would break all existing setups that use the existing CMD overwrite |
True, I do still think this is a good Docker standard to follow though :) Should we reconsider this when we near 1.0? |
87ee088
to
10d0f15
Compare
By using `ENTRYPOINT` for the default command, it is possible to extend the command with arguments by using `CMD` in a custom Dockerfile. As the command itself doesn't need to be changed/overwritten with this approach, changes to the location of the binary or command will not break these configurations in the future. Signed-off-by: Joda Stößer <git@simjo.st>
59e9e72
to
baace31
Compare
Signed-off-by: Joda Stößer <git@simjo.st>
55a63f1
to
167276c
Compare
@icewind1991 @Pytal @alerque I finally got a grip on all my PRs and updated this one as well. |
By using
ENTRYPOINT
for the default command, it is possible to extend the command with arguments by usingCMD
in a custom Dockerfile. As the command itself doesn't need to be changed/overwritten with this approach, changes to the location of the binary or command will not break these configurations in the future.