build-docker 228 B

123456789101112
  1. #!/usr/bin/bash
  2. tar cv --files-from /dev/null | docker import - scratch
  3. cat <<DF > Dockerfile
  4. FROM scratch
  5. ADD etcd /
  6. ADD etcdctl /
  7. EXPOSE 4001 7001 2379 2380
  8. ENTRYPOINT ["/etcd"]
  9. DF
  10. docker build -t quay.io/coreos/etcd:${1} .