Skip to content

Commit 7129807

Browse files
committed
[rhel8] only build vgpu-util when the DRIVER_TYPE is vgpu
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
1 parent 55d2ea9 commit 7129807

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rhel8/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ ENV PATH /usr/local/go/bin:$PATH
1717

1818
WORKDIR /work
1919

20-
RUN git clone https://github.com/NVIDIA/gpu-driver-container driver && \
20+
RUN if [ "$DRIVER_TYPE" = "vgpu" ]; then \
21+
git clone https://github.com/NVIDIA/gpu-driver-container driver && \
2122
cd driver/vgpu/src && \
2223
go build -o vgpu-util && \
23-
mv vgpu-util /work
24+
mv vgpu-util /work; fi
2425

2526
FROM ${BASE_IMAGE}
2627

0 commit comments

Comments
 (0)