Skip to content

Commit 8c7c88c

Browse files
authored
chore: use base image from arg (#21)
1 parent 0715098 commit 8c7c88c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile.nvidia

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ARG BASE_IMAGE_GO_DISTROLESS
2+
13
# Build node feature discovery
24
FROM golang:1.25 AS builder
35

@@ -21,7 +23,7 @@ RUN --mount=type=cache,target=/go/pkg/mod/ \
2123
make install VERSION=v0.0.0 HOSTMOUNT_PREFIX=/host-
2224

2325
# Create minimal variant of the production image
24-
FROM nvcr.io/nvidia/distroless/go:v3.2.0 AS final
26+
FROM ${BASE_IMAGE_GO_DISTROLESS:-nvcr.io/nvidia/distroless/go:v3.2.1} AS final
2527

2628
# Run as unprivileged user
2729
USER 65534:65534

0 commit comments

Comments
 (0)