2018-03-12 21:56:02 +03:00
|
|
|
FROM golang:1.10
|
2016-07-17 03:55:16 +03:00
|
|
|
|
2017-10-31 04:38:31 +03:00
|
|
|
MAINTAINER Olaoluwa Osuntokun <lightning.engineering>
|
2016-07-17 03:55:16 +03:00
|
|
|
|
2017-01-18 02:33:01 +03:00
|
|
|
# Expose lnd ports (server, rpc).
|
2017-08-22 10:40:51 +03:00
|
|
|
EXPOSE 9735 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
|
|
|
|
|
2018-03-04 21:45:55 +03:00
|
|
|
# Install dep to manage vendor.
|
|
|
|
RUN go get -u github.com/golang/dep/cmd/dep
|
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
|
|
|
|
|
2018-03-04 21:45:55 +03:00
|
|
|
# Install dependencies and install/build lnd.
|
|
|
|
RUN dep ensure
|
2017-01-18 02:33:01 +03:00
|
|
|
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
|