Skip to content

Commit

Permalink
feat(Dockerfile): switch cmd to entrypoint
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SimJoSt authored Aug 7, 2021
1 parent 28d132f commit 59e9e72
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 @@ -22,4 +22,4 @@ FROM scratch
COPY --from=build /home/rust/src/target/x86_64-unknown-linux-musl/release/notify_push /
EXPOSE 7867

CMD ["/notify_push"]
ENTRYPOINT ["/notify_push"]

0 comments on commit 59e9e72

Please sign in to comment.