diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-18 10:24:32 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-18 10:24:32 +0200 |
| commit | 7a0771215d9bd52dc9d6913abee56a9f62893d3e (patch) | |
| tree | 4e81472da16b953307f6a416067cf9e3c7c1d223 /Dockerfile | |
| parent | 041b2dd29d30a8ecadca22ef25282cbad672d94e (diff) | |
| download | bokf-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-- | Dockerfile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 \ |
