Skip to content

Commit 8d85a6b

Browse files
committed
chore: use base image from arg
Signed-off-by: Fred Rolland <[email protected]>
1 parent ef29da5 commit 8d85a6b

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

@@ -34,7 +36,7 @@ COPY . /workspace
3436
# Build with make to apply all build logic defined in Makefile
3537
RUN make build
3638

37-
FROM nvcr.io/nvidia/distroless/go:v3.2.1
39+
FROM ${BASE_IMAGE_GO_DISTROLESS:-nvcr.io/nvidia/distroless/go:v3.2.1}
3840
WORKDIR /
3941
COPY --from=builder /workspace/build/network-operator-init-container .
4042

0 commit comments

Comments
 (0)