summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-18 10:24:32 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-18 10:24:32 +0200
commit7a0771215d9bd52dc9d6913abee56a9f62893d3e (patch)
tree4e81472da16b953307f6a416067cf9e3c7c1d223 /Dockerfile
parent041b2dd29d30a8ecadca22ef25282cbad672d94e (diff)
downloadbokf-0.1.13.tar.gz
bokf-0.1.13.zip
deploy: cross-compile arm64 binaries on the dev machinev0.1.13
The target only assembles the image from prebuilt binaries, so redeploys no longer compile sqlite/argon2 on the NAS. New deploy/Dockerfile.cross provides the gcc-aarch64-linux-gnu toolchain; the Dockerfile uses .prebuilt/ when present.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index d658d70..41e2895 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,7 +8,14 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
-RUN make -j"$(nproc)" VERSION="$VERSION" && make test VERSION="$VERSION"
+# With .prebuilt/ the binaries are cross-compiled on the development machine
+# (see deploy/Dockerfile.cross); otherwise build and test from source.
+RUN if [ -x .prebuilt/bokfd ]; then \
+ mkdir -p build && \
+ cp .prebuilt/bokfd .prebuilt/bokfctl .prebuilt/bokftui build/; \
+ else \
+ make -j"$(nproc)" VERSION="$VERSION" && make test VERSION="$VERSION"; \
+ fi
FROM debian:bookworm-slim AS runtime
RUN apt-get update \