scripts: build-docker tag and use ENTRYPOINT

Use ENTRYPOINT so people can specify flags to etcd without providing the
binary.

Thanks to @hugod in IRC for pointing this out.
This commit is contained in:
Brandon Philips 2014-11-19 12:11:27 -08:00
parent 893fb3b890
commit 00df13138e

View File

@ -6,7 +6,7 @@ FROM scratch
ADD etcd /
ADD etcdctl /
EXPOSE 4001 7001 2379 2380
CMD ["/etcd"]
ENTRYPOINT ["/etcd"]
DF
docker build .
docker build -t quay.io/coreos/etcd:${1} .