Skip to content

Commit f33e8f0

Browse files
rollandfalmaslennikov
authored andcommitted
chore: use base image from arg
Signed-off-by: Fred Rolland <[email protected]>
1 parent 1a68445 commit f33e8f0

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_DOCA_FULL_RT_HOST
18+
1719
# Build the manager binary
1820
FROM golang:1.24 AS builder
1921
ARG TARGETOS
@@ -40,7 +42,7 @@ COPY ./ ./
4042
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
4143
RUN --mount=type=cache,target=/go/pkg/mod/ GO_GCFLAGS=${GCFLAGS} make build
4244

43-
FROM nvcr.io/nvidia/doca/doca:3.1.0-full-rt-host
45+
FROM ${BASE_IMAGE_DOCA_FULL_RT_HOST:-nvcr.io/nvidia/doca/doca:3.1.0-full-rt-host}
4446

4547
RUN apt update && apt install -y \
4648
iproute2 \

0 commit comments

Comments
 (0)