From baace31c6ffe9467b32136983abd36efdeaa0865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joda=20St=C3=B6=C3=9Fer?= Date: Sat, 7 Aug 2021 15:40:42 +0200 Subject: [PATCH] feat(Dockerfile): switch cmd to entrypoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f571063d..c2ddc9a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["/notify_push"]