mirror of
https://github.com/lnbook/lnbook
synced 2024-11-18 21:28:03 +00:00
Use golang docker image for lnd_base
This commit is contained in:
parent
e5e36d9501
commit
39d70405df
@ -1,26 +1,6 @@
|
|||||||
FROM ubuntu:18.04
|
FROM golang:1.13
|
||||||
|
|
||||||
# Install development tools prerequisites
|
WORKDIR /go/src/
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
build-essential \
|
|
||||||
libtool \
|
|
||||||
autotools-dev \
|
|
||||||
automake \
|
|
||||||
pkg-config \
|
|
||||||
python3 \
|
|
||||||
wget \
|
|
||||||
git \
|
|
||||||
curl \
|
|
||||||
unzip
|
|
||||||
|
|
||||||
|
|
||||||
# Go 1.13 for LND
|
|
||||||
RUN curl -SL https://dl.google.com/go/go1.13.linux-amd64.tar.gz \
|
|
||||||
| tar -xzC /usr/local
|
|
||||||
ENV PATH $PATH:/usr/local/go/bin
|
|
||||||
ENV GOPATH /gocode
|
|
||||||
RUN mkdir -p $GOPATH
|
|
||||||
ENV PATH $PATH:$GOPATH/bin
|
|
||||||
|
|
||||||
# LND
|
# LND
|
||||||
RUN go get -d github.com/lightningnetwork/lnd
|
RUN go get -d github.com/lightningnetwork/lnd
|
||||||
|
Loading…
Reference in New Issue
Block a user