From 19e4d8dcc9c9e76a8c90855cccb4c4553b35389e Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Sun, 20 Sep 2026 23:09:31 +0200 Subject: deploy: cross-compile static aarch64 for the Alpine image --- deploy/Dockerfile.cross | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 deploy/Dockerfile.cross (limited to 'deploy/Dockerfile.cross') diff --git a/deploy/Dockerfile.cross b/deploy/Dockerfile.cross new file mode 100644 index 0000000..ab0504c --- /dev/null +++ b/deploy/Dockerfile.cross @@ -0,0 +1,13 @@ +# Cross-compile the static arm64 backend binaries on an amd64 host. The +# runtime image is assembled later on the target host from the produced +# binaries; there is no TUI in the runtime image. +FROM debian:bookworm +RUN dpkg --add-architecture arm64 \ + && apt-get update \ + && apt-get install -y --no-install-recommends \ + make ca-certificates gcc-aarch64-linux-gnu \ + libc6-dev:arm64 libssl-dev:arm64 \ + && rm -rf /var/lib/apt/lists/* +COPY cross-build.sh /usr/local/bin/cross-build +RUN chmod 0755 /usr/local/bin/cross-build +ENTRYPOINT ["/usr/local/bin/cross-build"] -- cgit v1.3