Skip to content

Commit 5308e0f

Browse files
Merge pull request #166 from rollandf/dockerarg
2 parents 8df71e4 + fdac067 commit 5308e0f

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

@@ -36,7 +38,7 @@ RUN make build
3638

3739
# Use distroless as minimal base image to package the manager binary
3840
# Refer to https://github.com/GoogleContainerTools/distroless for more details
39-
FROM nvcr.io/nvidia/distroless/go:v3.2.0
41+
FROM ${BASE_IMAGE_GO_DISTROLESS:-nvcr.io/nvidia/distroless/go:v3.2.1}
4042
COPY . /src
4143
WORKDIR /
4244
COPY --from=builder /workspace/build/ipam-controller .

0 commit comments

Comments
 (0)