docker: switch to use glide installation

In order to make the installation process of the btcd robust we should
use "glide" instead of "go get".
This commit is contained in:
Andrey Samokhvalov 2017-07-04 19:48:53 +03:00 committed by Olaoluwa Osuntokun
parent f39b7aaaf9
commit 1cd576e93a

@ -16,7 +16,12 @@ EXPOSE 28901 28902
# Grab and install the latest version of roasbeef's fork of btcd and all
# related dependencies.
RUN go get -u -v github.com/roasbeef/btcd/...
RUN go get -u github.com/Masterminds/glide
WORKDIR $GOPATH/src/github.com/roasbeef/btcd
RUN git clone https://github.com/roasbeef/btcd .
RUN glide install
RUN go install . ./cmd/...
RUN mkdir "/rpc" "/root/.btcd" "/root/.btcctl"
RUN touch "/root/.btcd/btcd.conf"