diff options
| -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 \ |
