github.com/technosophos/deis@v1.7.1-0.20150915173815-f9005256004b/tests/fixtures/test-etcd/Dockerfile (about) 1 FROM alpine:3.1 2 3 # install common packages 4 RUN apk add --update-cache curl tar && rm -rf /var/cache/apk/* 5 6 # ETCD_VERSION is actually used by the etcd daemon, and causes an issue if we 7 # format it for our use here. So, we call this something else. 8 ENV INSTALL_ETCD_VERSION v2.1.2 9 10 # install etcd and etcdctl 11 RUN curl -sSL https://github.com/coreos/etcd/releases/download/$INSTALL_ETCD_VERSION/etcd-$INSTALL_ETCD_VERSION-linux-amd64.tar.gz \ 12 | tar -vxz -C /usr/local/bin --strip=1 13 14 EXPOSE 4001 7001 2379 2380 15 CMD ["/usr/local/bin/etcd"]