2017-03-21 16:17:24 +03:00
|
|
|
FROM golang:1.8
|
2016-07-17 03:55:16 +03:00
|
|
|
|
|
|
|
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.network>
|
|
|
|
|
2017-01-18 02:33:01 +03:00
|
|
|
# Expose lnd ports (server, rpc).
|
|
|
|
EXPOSE 10011 10009
|
2016-08-30 01:17:48 +03:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2017-01-18 02:33:01 +03:00
|
|
|
# Install glide to manage vendor.
|
|
|
|
RUN go get -u github.com/Masterminds/glide
|
2016-08-30 01:17:48 +03:00
|
|
|
|
2017-01-18 02:33:01 +03:00
|
|
|
# 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/...
|
2016-07-17 03:55:16 +03:00
|
|
|
|
2017-01-12 03:12:32 +03:00
|
|
|
COPY "docker/lnd/start-lnd.sh" .
|
2017-01-22 17:44:15 +03:00
|
|
|
RUN chmod +x start-lnd.sh
|