https://github.com/etcd-io/etcd
Raw File
Tip revision: 9fa3bea5a22265151f0d5063ce38a79c5b5d0271 authored by Yicheng Qin on 31 March 2015, 20:54:58 UTC
*: bump to v0.4.9
Tip revision: 9fa3bea
Dockerfile
FROM ubuntu:12.04
# Let's install go just like Docker (from source).
RUN apt-get update -q
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy build-essential curl git
RUN curl -s https://storage.googleapis.com/golang/go1.3.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