Skip to content

Commit 59e9e72

Browse files
authored
feat(Dockerfile): switch cmd to entrypoint
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.
1 parent 28d132f commit 59e9e72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ FROM scratch
2222
COPY --from=build /home/rust/src/target/x86_64-unknown-linux-musl/release/notify_push /
2323
EXPOSE 7867
2424

25-
CMD ["/notify_push"]
25+
ENTRYPOINT ["/notify_push"]

0 commit comments

Comments
 (0)