lnd.xprv/docker/lnd/Dockerfile
Faris Amali Alis 5e7655be54 docker: update instructions and Dockerfile for recent p2p port change
Error `connection refused` was thrown when user tries to get "Alice" to
connect to "Bob" node due to port mismatch introduced in this change [1]
here.

This commit updates the port value to reflect the new change introduced in
[1].

Reference: [1]
72772ce4df

Chanes in this commit:
  * Update references to old port value
  * Omit specifying port during lncli connect
  * Fix typo
2017-04-04 14:28:05 +02:00

27 lines
768 B
Docker

FROM golang:1.8
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.network>
# Expose lnd ports (server, rpc).
EXPOSE 5656 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
# Install glide to manage vendor.
RUN go get -u github.com/Masterminds/glide
# 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" .
RUN chmod +x start-lnd.sh