docker/lnd: install dependencies through dep

This commit is contained in:
Wilmer Paulino 2018-03-04 13:45:55 -05:00
parent da5381815e
commit e4b286fd06
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F

@ -9,8 +9,8 @@ EXPOSE 9735 10009
# queries required to connect to linked containers succeed.
ENV GODEBUG netdns=cgo
# Install glide to manage vendor.
RUN go get -u github.com/Masterminds/glide
# Install dep to manage vendor.
RUN go get -u github.com/golang/dep/cmd/dep
# Grab and install the latest version of lnd and all related dependencies.
RUN git clone https://github.com/lightningnetwork/lnd $GOPATH/src/github.com/lightningnetwork/lnd
@ -18,8 +18,8 @@ RUN git clone https://github.com/lightningnetwork/lnd $GOPATH/src/github.com/lig
# Make lnd folder default.
WORKDIR $GOPATH/src/github.com/lightningnetwork/lnd
# Install dependency and install/build lnd.
RUN glide install
# Install dependencies and install/build lnd.
RUN dep ensure
RUN go install . ./cmd/...
COPY "docker/lnd/start-lnd.sh" .