Dockerfile 450 B

123456789101112
  1. FROM ubuntu:12.04
  2. # Let's install go just like Docker (from source).
  3. RUN apt-get update -q
  4. RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy build-essential curl git
  5. RUN curl -s https://storage.googleapis.com/golang/go1.3.src.tar.gz | tar -v -C /usr/local -xz
  6. RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
  7. ENV PATH /usr/local/go/bin:$PATH
  8. ADD . /opt/etcd
  9. RUN cd /opt/etcd && ./build
  10. EXPOSE 4001 7001
  11. ENTRYPOINT ["/opt/etcd/bin/etcd"]