|
@@ -1,9 +1,10 @@
|
|
|
FROM ubuntu:12.04
|
|
FROM ubuntu:12.04
|
|
|
-RUN apt-get update
|
|
|
|
|
-RUN apt-get install -y python-software-properties git
|
|
|
|
|
-RUN add-apt-repository -y ppa:duh/golang
|
|
|
|
|
-RUN apt-get update
|
|
|
|
|
-RUN apt-get install -y golang
|
|
|
|
|
|
|
+# 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
|
|
ADD . /opt/etcd
|
|
|
RUN cd /opt/etcd && ./build
|
|
RUN cd /opt/etcd && ./build
|
|
|
EXPOSE 4001 7001
|
|
EXPOSE 4001 7001
|