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