diff --git a/docker/lnd/Dockerfile b/docker/lnd/Dockerfile index 2d5c4ef0..96255660 100644 --- a/docker/lnd/Dockerfile +++ b/docker/lnd/Dockerfile @@ -2,9 +2,6 @@ FROM golang:1.13-alpine as builder MAINTAINER Olaoluwa Osuntokun -# Copy in the local repository to build from. -COPY . /go/src/github.com/lightningnetwork/lnd - # Force Go to use the cgo based DNS resolver. This is required to ensure DNS # queries required to connect to linked containers succeed. ENV GODEBUG netdns=cgo @@ -12,8 +9,12 @@ ENV GODEBUG netdns=cgo # Install dependencies and install/build lnd. RUN apk add --no-cache --update alpine-sdk \ git \ - make \ -&& cd /go/src/github.com/lightningnetwork/lnd \ + make + +# Copy in the local repository to build from. +COPY . /go/src/github.com/lightningnetwork/lnd + +RUN cd /go/src/github.com/lightningnetwork/lnd \ && make \ && make install tags="signrpc walletrpc chainrpc invoicesrpc routerrpc"