From f6f42dd4c1cc1edd868fcd9e246454bdf6bdb76c Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Wed, 14 May 2025 19:57:39 +0200 Subject: [PATCH] Fix docker lint warnings (#4074) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2dba53d2..329653d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM --platform=$BUILDPLATFORM golang:1.24.3 as builder +FROM --platform=$BUILDPLATFORM golang:1.24.3 AS builder WORKDIR /workspace @@ -30,7 +30,7 @@ ARG TARGETPLATFORM TARGETOS TARGETARCH TARGETVARIANT VERSION=dev COMMIT_SHA=dev # to avoid https://github.com/moby/buildkit/issues/2334 # We can use docker layer cache so the build is fast enogh anyway # We also use per-platform GOCACHE for the same reason. -ENV GOCACHE /build/${TARGETPLATFORM}/root/.cache/go-build +ENV GOCACHE="/build/${TARGETPLATFORM}/root/.cache/go-build" # Build RUN --mount=target=. \