-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: make 'lnd' dockerfile download project from github rather tha…
…n mount it localy
- Loading branch information
1 parent
0325b0c
commit 49df1b0
Showing
1 changed file
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" . |