diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-18 10:45:58 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-18 10:45:58 +0200 |
| commit | b53e20f8cf7fc3c419978ca417d81f4a64c28647 (patch) | |
| tree | b1d67ac6a647844880c58b0c8386aa41b8349576 | |
| parent | 1e5b4927e5ae1d542d51158eb995d4f4b5a8b1c5 (diff) | |
| download | bokf-b53e20f8cf7fc3c419978ca417d81f4a64c28647.tar.gz bokf-b53e20f8cf7fc3c419978ca417d81f4a64c28647.zip | |
build: declare VERSION after the apt layers so the cache survivesv0.1.15
| -rw-r--r-- | Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 \ |
