From 3c067cc5169777b6b75892657de0027938ad7a90 Mon Sep 17 00:00:00 2001 From: Feruzjon Muyassarov Date: Mon, 6 Oct 2025 14:10:14 +0300 Subject: [PATCH] Dockerfile: add the ARG defaulting within the Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the default value for `GO_VERSION` within the Dockerfile to fix build checks warnings that come from an empty variable. This doesn’t break existing behavior; version control is still managed by the Makefile ``` - InvalidDefaultArgInFrom: Default value for ARG \ golang:${GO_VERSION} results in empty or invalid base image name (line 17) ``` Signed-off-by: Feruzjon Muyassarov --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ad6c6b4b9b..81cca2e16a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ # Build the manager binary ARG GO_VERSION -FROM golang:${GO_VERSION} AS builder +FROM golang:${GO_VERSION:-1.24.7} AS builder WORKDIR /workspace # Run this with docker build --build_arg goproxy=$(go env GOPROXY) to override the goproxy