Dockerfile 273 B

1234567891011
  1. FROM ubuntu:12.04
  2. RUN apt-get update
  3. RUN apt-get install -y python-software-properties git
  4. RUN add-apt-repository -y ppa:duh/golang
  5. RUN apt-get update
  6. RUN apt-get install -y golang
  7. ADD . /opt/etcd
  8. RUN cd /opt/etcd && ./build
  9. EXPOSE 4001 7001
  10. ENTRYPOINT ["/opt/etcd/etcd"]