https://github.com/etcd-io/etcd
Raw File
Tip revision: f9d27c37aa9bc12a51a6675e93cae454415aa3fa authored by Brandon Philips on 07 February 2014, 23:57:08 UTC
Merge pull request #548 from philips/0.3.0
Tip revision: f9d27c3
Dockerfile
FROM ubuntu:12.04
# Let's install go just like Docker (from source).
RUN apt-get update -q
RUN apt-get install -qy build-essential curl git
RUN curl -s https://go.googlecode.com/files/go1.2.src.tar.gz | tar -v -C /usr/local -xz
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
ENV PATH /usr/local/go/bin:$PATH
ADD . /opt/etcd
RUN cd /opt/etcd && ./build
EXPOSE 4001 7001
ENTRYPOINT ["/opt/etcd/bin/etcd"]

back to top