github.com/matm/etcd@v0.3.1-0.20140328024009-5b4a473f1453/Dockerfile (about)

     1  FROM ubuntu:12.04
     2  # Let's install go just like Docker (from source).
     3  RUN apt-get update -q
     4  RUN apt-get install -qy build-essential curl git
     5  RUN curl -s https://go.googlecode.com/files/go1.2.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"]
    12