github.com/sym3tri/etcd@v0.2.1-0.20140422215517-a563d82f95d6/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 DEBIAN_FRONTEND=noninteractive apt-get install -qy build-essential curl git
     5  RUN curl -s https://go.googlecode.com/files/go1.2.1.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