Dockerfile: Use ENTRYPOINT for binary and CMD for switches

This commit is contained in:
Alfonso Montero 2022-08-02 20:30:40 +00:00 committed by Naim A
parent 9575370ea4
commit a05ad76266

View file

@ -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" ]