From a05ad762667bd01f001ed3868da74ab13ae7b41b Mon Sep 17 00:00:00 2001 From: Alfonso Montero Date: Tue, 2 Aug 2022 20:30:40 +0000 Subject: [PATCH] Dockerfile: Use ENTRYPOINT for binary and CMD for switches --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3b97a01..eb2a5d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,5 @@ WORKDIR /usr/src/udpt RUN cargo build --release ${BUILD_ARGS} -CMD ["target/release/udpt-rs", "-c", "/usr/src/udpt/udpt.toml"] +ENTRYPOINT [ "target/release/udpt-rs" ] +CMD [ "-c", "/usr/src/udpt/udpt.toml" ]