@@ -17,8 +17,6 @@ RUN apt-get update -qq && \
17
17
apt-get install -qq -y --no-install-recommends \
18
18
gnupg
19
19
20
- # -------------- Bitcoin --------------------
21
-
22
20
ARG BITCOIN_VERSION=27.1
23
21
ARG BITCOIN_URL=https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}
24
22
ARG BITCOIN_TARBALL=bitcoin-${BITCOIN_VERSION}-${TARBALL_ARCH_FINAL}.tar.gz
@@ -36,8 +34,6 @@ RUN gpg --import gpg/* && \
36
34
37
35
RUN tar xzf ${BITCOIN_TARBALL} --strip-components=1
38
36
39
- # -------------- Litecoin -------------------
40
-
41
37
ARG LITECOIN_VERSION=0.16.3
42
38
ARG LITECOIN_BASE_URL=https://download.litecoin.org/litecoin-${LITECOIN_VERSION}
43
39
ARG LITECOIN_URL=${LITECOIN_BASE_URL}/linux
@@ -61,13 +57,15 @@ FROM ${BASE_DISTRO} AS base-builder
61
57
62
58
RUN apt-get update -qq && \
63
59
apt-get install -qq -y --no-install-recommends \
60
+ build-essential \
64
61
ca-certificates \
65
62
git \
66
63
gnupg \
67
64
wget \
68
- python3
69
-
70
- # -------------- Zlib ----------------------
65
+ python3 \
66
+ autoconf \
67
+ automake \
68
+ libicu-dev
71
69
72
70
ARG ZLIB_URL=https://github.com/madler/zlib/releases/download
73
71
ARG ZLIB_VERSION=1.2.13
@@ -84,8 +82,6 @@ RUN gpg --import gpg/* && \
84
82
85
83
# TODO: verify checksum
86
84
87
- # -------------- SQLite --------------------
88
-
89
85
ARG SQLITE_URL=https://www.sqlite.org
90
86
ARG SQLITE_YEAR=2019
91
87
ARG SQLITE_VERSION=3290000
@@ -99,8 +95,6 @@ ADD ${SQLITE_URL}/${SQLITE_YEAR}/${SQLITE_TARBALL} .
99
95
100
96
# TODO verify gpgs
101
97
102
- # -------------- Postgres ------------------
103
-
104
98
ARG POSTGRES_URL=https://ftp.postgresql.org/pub/source
105
99
ARG POSTGRES_VERSION=17.1
106
100
ARG POSTGRES_TARBALL=postgresql-${POSTGRES_VERSION}.tar.gz
@@ -115,13 +109,9 @@ ADD ${POSTGRES_URL}/v${POSTGRES_VERSION}/${POSTGRES_TARBALL}.sha256 .
115
109
116
110
RUN sha256sum -c ${POSTGRES_TARBALL}.sha256
117
111
118
- # -------------- Scripts ----------------------
119
-
120
112
ADD --chmod=750 https://sh.rustup.rs /opt/install-rust.sh
121
113
ADD --chmod=750 https://install.python-poetry.org /opt/install-poetry.py
122
114
123
- # -------------- Core Lightning --------------
124
-
125
115
WORKDIR /opt/lightningd
126
116
127
117
COPY . .
@@ -169,21 +159,21 @@ RUN rustup toolchain install stable --component rustfmt --allow-downgrade
169
159
170
160
WORKDIR /opt/zlib
171
161
172
- RUN tar xzf /opt/ ${ZLIB_TARBALL} --strip-components=1
162
+ RUN tar xzf ${ZLIB_TARBALL} --strip-components=1
173
163
RUN ./configure --prefix=${QEMU_LD_PREFIX}
174
164
RUN make -j
175
165
RUN make install
176
166
177
167
WORKDIR /opt/sqlite
178
168
179
- RUN tar xzf /opt/ ${SQLITE_TARBALL} --strip-components=1
169
+ RUN tar xzf ${SQLITE_TARBALL} --strip-components=1
180
170
RUN ./configure --host=${target_host} --prefix=${QEMU_LD_PREFIX} --enable-static --disable-readline --disable-threadsafe --disable-load-extension
181
171
RUN make -j
182
172
RUN make install
183
173
184
174
WORKDIR /opt/postgres
185
175
186
- RUN tar xzf /opt/ ${POSTGRES_TARBALL} --strip-components=1
176
+ RUN tar xzf ${POSTGRES_TARBALL} --strip-components=1
187
177
RUN ./configure --prefix=${QEMU_LD_PREFIX} --without-readline
188
178
RUN make install -C src/include
189
179
RUN make install -C src/interfaces/libpq
0 commit comments