summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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 \