-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
30 lines (21 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu:20.04
LABEL mantainer="Vincenzo Palazzo [email protected]"
# Ubuntu utils
RUN apt-get update && apt-get install -y \
software-properties-common
## Install jdk 11
RUN add-apt-repository -y ppa:linuxuprising/java
RUN apt-get update && apt-get install openjdk-11-jdk wget libsodium-dev libpq-dev -y
# Install bitcoin core and lightningd (last version)
RUN add-apt-repository ppa:luke-jr/bitcoincore
RUN apt-get update && apt-get install -y bitcoind jq
#RUN add-apt-repository -u ppa:lightningnetwork/ppa
#RUN apt-get update && apt-get install -y lightningd
ENV CLIGHTNING_VERSION=22.11.1
RUN wget https://github.com/ElementsProject/lightning/releases/download/v$CLIGHTNING_VERSION/clightning-v$CLIGHTNING_VERSION-Ubuntu-20.04.tar.xz && \
tar -xvf clightning-v$CLIGHTNING_VERSION-Ubuntu-20.04.tar.xz -C /opt && cd /opt && \
mv usr clightning-v$CLIGHTNING_VERSION
RUN rm -r clightning-v$CLIGHTNING_VERSION-Ubuntu-20.04.tar.xz
ENV PATH=/opt/clightning-v$CLIGHTNING_VERSION/bin:$PATH
WORKDIR workdir
CMD ["./entrypoint.sh"]