Skip to content

Commit

Permalink
Dockerfile: Use ENTRYPOINT for binary and CMD for switches
Browse files Browse the repository at this point in the history
  • Loading branch information
pataquets authored and naim94a committed Aug 2, 2022
1 parent 9575370 commit a05ad76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit a05ad76

Please sign in to comment.