summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-18 10:45:58 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-18 10:45:58 +0200
commitb53e20f8cf7fc3c419978ca417d81f4a64c28647 (patch)
treeb1d67ac6a647844880c58b0c8386aa41b8349576 /Dockerfile
parent1e5b4927e5ae1d542d51158eb995d4f4b5a8b1c5 (diff)
downloadbokf-0.1.15.tar.gz
bokf-0.1.15.zip
build: declare VERSION after the apt layers so the cache survivesv0.1.15
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 41e2895..b55f44d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,15 @@
# syntax=docker/dockerfile:1
FROM debian:bookworm-slim AS build
-ARG VERSION=0.1.0-dev
+# VERSION is declared after the expensive layers: the legacy builder
+# invalidates every layer that follows a changed build argument.
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential libncurses-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
+ARG VERSION=0.1.0-dev
# 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 \