Skip to content

Commit 888d656

Browse files
Merge pull request #57 from rollandf/dockerarg
2 parents dfe71d0 + 3c70b56 commit 888d656

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#
1515
# SPDX-License-Identifier: Apache-2.0
1616

17+
ARG BASE_IMAGE_GO_DISTROLESS
18+
1719
# Build the image
1820
FROM golang:1.24 as builder
1921

@@ -37,7 +39,7 @@ RUN task build
3739

3840
# Use distroless as minimal base image to package the manager binary
3941
# Refer to https://github.com/GoogleContainerTools/distroless for more details
40-
FROM nvcr.io/nvidia/distroless/go:v3.2.0
42+
FROM ${BASE_IMAGE_GO_DISTROLESS:-nvcr.io/nvidia/distroless/go:v3.2.1}
4143
WORKDIR /
4244
COPY --from=builder /workspace/build/nic-feature-discovery .
4345
COPY . /src

0 commit comments

Comments
 (0)