Skip to content

Commit

Permalink
docker: make 'lnd' dockerfile download project from github rather tha…
Browse files Browse the repository at this point in the history
…n mount it localy
  • Loading branch information
andrewshvv authored and Roasbeef committed Jan 18, 2017
1 parent 0325b0c commit 49df1b0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions docker/lnd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@ FROM golang:1.7

MAINTAINER Olaoluwa Osuntokun <[email protected]>

# TODO(roasbeef): just mount a volume from the build context to the GOPATH?
ADD . /go/src/github.com/lightningnetwork/lnd
WORKDIR /go/src/github.com/lightningnetwork/lnd
# Expose lnd ports (server, rpc).
EXPOSE 10011 10009

# 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

RUN go build
RUN go install . ./cmd/...
# Install glide to manage vendor.
RUN go get -u github.com/Masterminds/glide

# Expose lnd ports (server, rpc).
EXPOSE 10011 10009
# 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

# Make lnd folder default.
WORKDIR $GOPATH/src/github.com/lightningnetwork/lnd

# Instll dependency and install/build lnd.
RUN glide install
RUN go install . ./cmd/...

COPY "docker/lnd/start-lnd.sh" .

0 comments on commit 49df1b0

Please sign in to comment.