diff --git a/Dockerfile b/Dockerfile index 0277d13..e74e7d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,8 @@ # # SPDX-License-Identifier: Apache-2.0 +ARG BASE_IMAGE_GO_DISTROLESS + # Build the image FROM golang:1.24 as builder @@ -37,7 +39,7 @@ RUN task build # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM nvcr.io/nvidia/distroless/go:v3.2.0 +FROM ${BASE_IMAGE_GO_DISTROLESS:-nvcr.io/nvidia/distroless/go:v3.2.1} WORKDIR / COPY --from=builder /workspace/build/nic-feature-discovery . COPY . /src