From ae84c25786dfb8ec640415d3f002494f9b07e4ac Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 1 Oct 2025 16:34:48 +0200 Subject: [PATCH] Dockerfile: merge build stages Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- Dockerfile | 56 +++++++++++++++++++----------------------------------- 1 file changed, 20 insertions(+), 36 deletions(-) diff --git a/Dockerfile b/Dockerfile index d97ff99..711b807 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG GO_VERSION=1.24.7 ARG DEBIAN_VERSION=bookworm ARG XX_VERSION=1.7.0 -ARG OSXCROSS_VERSION=11.3-r7-debian +ARG OSXCROSS_VERSION=11.3-r8-debian ARG GOLANGCI_LINT_VERSION=v2.5 ARG DEBIAN_FRONTEND=noninteractive @@ -99,21 +99,7 @@ FROM gobase AS version RUN --mount=target=. \ echo -n "$(./hack/git-meta version)" | tee /tmp/.version ; echo -n "$(./hack/git-meta revision)" | tee /tmp/.revision -FROM base AS build-linux -ARG PACKAGE -RUN --mount=type=bind,target=. \ - --mount=type=cache,target=/root/.cache \ - --mount=type=cache,target=/go/pkg/mod \ - --mount=type=bind,source=/tmp/.version,target=/tmp/.version,from=version \ - --mount=type=bind,source=/tmp/.revision,target=/tmp/.revision,from=version <