From 22a8f102e91990c55f03374d58fbb89b93d2de7d Mon Sep 17 00:00:00 2001 From: Fred Rolland Date: Tue, 4 Nov 2025 14:03:40 +0200 Subject: [PATCH] chore: use base image from arg Signed-off-by: Fred Rolland --- images/Dockerfile.nvidia | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/images/Dockerfile.nvidia b/images/Dockerfile.nvidia index d27ca32a1..0b91293df 100644 --- a/images/Dockerfile.nvidia +++ b/images/Dockerfile.nvidia @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +ARG BASE_IMAGE_GO_DISTROLESS_DEV + FROM --platform=$BUILDPLATFORM golang:1.23.4 AS builder ARG GOPROXY @@ -35,7 +37,7 @@ RUN apt-get update && \ FROM alpine:3 AS pkgs RUN apk add --no-cache hwdata-pci kmod -FROM nvcr.io/nvidia/distroless/go:v3.2.0-dev +FROM ${BASE_IMAGE_GO_DISTROLESS_DEV:-nvcr.io/nvidia/distroless/go:v3.2.1-dev} USER 0:0 SHELL ["/busybox/sh", "-c"]