1
- # This Dockerfile is used by buildx to build ARM64, AMD64, and ARM32 Docker images from an AMD64 host.
2
- # To speed up the build process, we are cross-compiling rather than relying on QEMU.
3
- # There are four main stages:
4
- # * downloader: Downloads specific binaries needed for core lightning for each architecture.
5
- # * builder: Cross-compiles for each architecture.
6
- # * final: Creates the runtime image.
7
-
8
-
9
1
ARG BASE_DISTRO="debian:bookworm-slim"
10
2
11
3
FROM ${BASE_DISTRO} AS base-downloader
@@ -91,10 +83,10 @@ ARG SQLITE_TARBALL=sqlite-autoconf-${SQLITE_VERSION}.tar.gz
91
83
WORKDIR /opt/sqlite
92
84
93
85
ADD ${SQLITE_URL}/${SQLITE_YEAR}/${SQLITE_TARBALL} sqlite.tar.gz
94
- // TODO: add sig
95
- // TODO: add gpgs
86
+ # TODO: add sig
87
+ # TODO: add gpgs
96
88
97
- // TODO verify gpgs
89
+ # TODO verify gpgs
98
90
99
91
# -------------- Postgres ------------------
100
92
@@ -104,11 +96,13 @@ ARG POSTGRES_TARBALL=postgresql-${POSTGRES_VERSION}.tar.gz
104
96
105
97
WORKDIR /opt/postgres
106
98
107
- ADD ${POSTGRES_URL}/v${POSTGRES_VERSION}/${POSTGRES_TARBALL} postgres.tar.gz
108
- //TODO: add sig
109
- //TODO: add gpgs
99
+ ADD ${POSTGRES_URL}/v${POSTGRES_VERSION}/${POSTGRES_TARBALL} postgres.tar.gz
100
+ ADD ${POSTGRES_URL}/v${POSTGRES_VERSION}/${POSTGRES_TARBALL}.sha256 postgres.tar.gz.sha256
101
+ # TODO: add gpgs
102
+
103
+ # TODO verify gpgs
110
104
111
- //TODO verify gpgs
105
+ RUN sha256sum -c postgres.tar.gz.sha256
112
106
113
107
# -------------- Rust ----------------------
114
108
ADD --chmod=750 https://sh.rustup.rs /opt/install-rust.sh
@@ -185,7 +179,6 @@ RUN ./install-poetry.py
185
179
ENV PATH="/root/.cargo/bin:/root/.local/bin:${PATH}"
186
180
187
181
RUN rustup toolchain install stable --component rustfmt --allow-downgrade
188
- RUN poetry self add poetry-plugin-export
189
182
190
183
WORKDIR /opt/zlib
191
184
0 commit comments