From e40a1908eb0a9c2f61adb2b1072a861afbfba067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20M=C3=B6ller?= Date: Thu, 5 Oct 2023 16:37:54 +0200 Subject: [PATCH] fix: remove build cache mount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Möller --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index babcc797f..d51d086f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,7 @@ COPY cmd/ cmd/ COPY internal/ internal/ # Build -RUN --mount=type=cache,target=/root/.cache/go-build \ - GOOS=$TARGETOS GOARCH=$TARGETARCH go build -mod=vendor --ldflags "-s -w" -a -o lvms cmd/main.go +RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -mod=vendor --ldflags "-s -w" -a -o lvms cmd/main.go # vgmanager needs 'nsenter' and other basic linux utils to correctly function FROM --platform=$TARGETPLATFORM registry.access.redhat.com/ubi9/ubi-minimal:9.2