2016-08-30 01:17:48 +03:00
|
|
|
FROM golang:1.7
|
2016-07-17 03:55:16 +03:00
|
|
|
|
|
|
|
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.network>
|
|
|
|
|
|
|
|
# Grab and install the latest version of roasbeef's fork of btcd and all
|
|
|
|
# related dependencies.
|
|
|
|
RUN go get -u -v github.com/roasbeef/btcd/...
|
|
|
|
|
|
|
|
# Expose the mainnet, testnet, simnet, and segnet listening ports.
|
|
|
|
EXPOSE 8333 18333 18335 28901
|
|
|
|
|
|
|
|
# Expose the mainnet, testnet, simnet, and segnet rpc ports.
|
|
|
|
EXPOSE 8333 18333 18336 28902
|
|
|
|
|
2016-08-30 01:17:48 +03:00
|
|
|
# Create a volume to house the RPC credentials. This will be shared with any
|
|
|
|
# lnd containers so they can securely query btcd's RPC server.
|
|
|
|
VOLUME ["/rpc"]
|
|
|
|
|
2016-07-17 03:55:16 +03:00
|
|
|
VOLUME ["/data"]
|
|
|
|
|
|
|
|
RUN mkdir /root/.btcd && mkdir /root/.btcctl
|
|
|
|
|
2016-08-30 01:17:48 +03:00
|
|
|
COPY btcd-start.sh /
|
2016-07-17 03:55:16 +03:00
|
|
|
|
2016-08-30 01:17:48 +03:00
|
|
|
# Finally, execute the shell script that will start btcd. We use a shell script
|
|
|
|
# rather than executing the command directly with ENTRYPOINT in order to ensure
|
|
|
|
# environment variables get properly substitued.
|
|
|
|
ENTRYPOINT ["/btcd-start.sh"]
|