Dockerfile: use 'ENTRYPOINT' instead of 'CMD'

use entrypoint, so people can specify flags to etcd
without providing the binary.

Signed-off-by: Secret <haichuang221@163.com>
release-3.0
Secret 2016-07-03 16:59:54 +08:00 committed by Gyu-Ho Lee
parent 7f1940e5ed
commit 37cc3f5262
1 changed files with 2 additions and 2 deletions

View File

@ -6,5 +6,5 @@ RUN mkdir -p /var/etcd/
EXPOSE 2379 2380
# Define default command.
CMD ["/usr/local/bin/etcd"]
# Define default entrypoint.
ENTRYPOINT ["/usr/local/bin/etcd"]