From 1cd576e93a90c445594d88356f00ca6322bcbc11 Mon Sep 17 00:00:00 2001 From: Andrey Samokhvalov Date: Tue, 4 Jul 2017 19:48:53 +0300 Subject: [PATCH] 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". --- docker/btcd/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/btcd/Dockerfile b/docker/btcd/Dockerfile index b3207482..b1d96c62 100644 --- a/docker/btcd/Dockerfile +++ b/docker/btcd/Dockerfile @@ -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"