mirror of https://github.com/lnbook/lnbook
Docker consolidation and cleanup
Converted to multi-stage builds and improved startup handlingpull/238/head
parent
28f91cb4b4
commit
73bf225708
@ -1,15 +0,0 @@
|
||||
FROM ubuntu:18.04 AS bitcoind-base
|
||||
|
||||
ENV BITCOIND_VERSION 0.20.0
|
||||
|
||||
# Install binaries for Bitcoin Core
|
||||
ADD https://bitcoincore.org/bin/bitcoin-core-${BITCOIND_VERSION}/bitcoin-${BITCOIND_VERSION}-x86_64-linux-gnu.tar.gz /usr/local
|
||||
RUN cd /usr/local/ \
|
||||
&& tar -zxf bitcoin-${BITCOIND_VERSION}-x86_64-linux-gnu.tar.gz \
|
||||
&& cd bitcoin-${BITCOIND_VERSION} \
|
||||
&& install bin/* /usr/local/bin \
|
||||
&& install include/* /usr/local/include \
|
||||
&& install -v lib/* /usr/local/lib
|
||||
|
||||
# Confirm installation
|
||||
RUN bitcoind -version
|
@ -0,0 +1,3 @@
|
||||
# Use bash-completion, if available
|
||||
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
|
||||
. /usr/share/bash-completion/bash_completion
|
@ -0,0 +1,5 @@
|
||||
FROM node:12-alpine
|
||||
|
||||
WORKDIR /usr/src/btc-explorer
|
||||
|
||||
RUN npm install git+https://git@github.com/janoside/btc-rpc-explorer.git
|
@ -1,12 +0,0 @@
|
||||
FROM golang:1.13
|
||||
|
||||
ENV GOPATH /go
|
||||
WORKDIR $GOPATH/src
|
||||
|
||||
RUN apt update && apt install -y \
|
||||
jq
|
||||
|
||||
# LND
|
||||
RUN go get -d github.com/lightningnetwork/lnd
|
||||
WORKDIR $GOPATH/src/github.com/lightningnetwork/lnd
|
||||
RUN make && make install
|
Loading…
Reference in New Issue