Browse Source

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.
Brandon Philips 11 years ago
parent
commit
00df13138e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/build-docker

+ 2 - 2
scripts/build-docker

@@ -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} .