https://github.com/coreos/etcd
Raw File
Tip revision: 99dcc8c3220d487e1d325ae1a041007260009c73 authored by Brandon Philips on 02 June 2014, 22:25:03 UTC
chore(server): bump back to 0.4.2
Tip revision: 99dcc8c
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://go.googlecode.com/files/go1.2.1.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