Skip to content

Commit

Permalink
Use ENTRYPOINT instead of CMD in Dockerfile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pallxk committed Aug 15, 2024
1 parent 191bcb3 commit 7106ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ COPY --from=BuildStage /kaf /bin/kaf
USER 1001

# Run
CMD ["/bin/kaf"]
ENTRYPOINT ["/bin/kaf"]

0 comments on commit 7106ade

Please # to comment.