Browse Source

Merge pull request #114 from zefhemel/dockerfile

Added dockerfile
Xiang Li 12 years ago
parent
commit
b17a2e2bf1
1 changed files with 10 additions and 0 deletions
  1. 10 0
      Dockerfile

+ 10 - 0
Dockerfile

@@ -0,0 +1,10 @@
+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
+ADD . /opt/etcd
+RUN cd /opt/etcd && ./build
+EXPOSE 4001 7001
+ENTRYPOINT ["/opt/etcd/etcd", "-c", "0.0.0.0:4001", "-s", "0.0.0.0:7001"]