2013-08-15 11:57:42 +04:00
|
|
|
FROM ubuntu:12.04
|
2014-01-15 06:17:10 +04:00
|
|
|
# Let's install go just like Docker (from source).
|
|
|
|
RUN apt-get update -q
|
2014-04-06 00:54:20 +04:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy build-essential curl git
|
2014-08-13 21:54:51 +04:00
|
|
|
RUN curl -s https://storage.googleapis.com/golang/go1.3.1.src.tar.gz | tar -v -C /usr/local -xz
|
2014-01-15 06:17:10 +04:00
|
|
|
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
|
|
|
|
ENV PATH /usr/local/go/bin:$PATH
|
2013-08-15 11:57:42 +04:00
|
|
|
ADD . /opt/etcd
|
|
|
|
RUN cd /opt/etcd && ./build
|
|
|
|
EXPOSE 4001 7001
|
2014-01-15 21:46:09 +04:00
|
|
|
ENTRYPOINT ["/opt/etcd/bin/etcd"]
|
2013-12-06 14:13:33 +04:00
|
|
|
|