Skip to content

Commit 36fcf70

Browse files
Merge pull request #8 from rollandf/baseimagerel
chore: update NVIDIA base image
2 parents 565dc0c + 788d093 commit 36fcf70

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

Dockerfile.nvidia

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
ARG BASE_IMAGE=nvcr.io/nvidia/doca/doca:3.0.0-base-rt-host
1+
FROM alpine:3 AS pkgs
22

3-
FROM ${BASE_IMAGE}
4-
5-
ARG GOPROXY
6-
ENV GOPROXY=${GOPROXY}
7-
8-
RUN apt-get update -y && apt-get install -y curl
9-
10-
WORKDIR /
3+
RUN apk add --no-cache curl
114

125
ARG VERSION=v1.3.0
136
ARG TARGETARCH
@@ -18,8 +11,18 @@ RUN mkdir -p /usr/src/cni/bin && \
1811
tar -xvf cni-plugins-linux-${TARGETARCH}-${VERSION}.tgz -C /usr/src/cni/bin/ && \
1912
echo done
2013

14+
FROM nvcr.io/nvidia/distroless/go:v3.1.13-dev AS entrypoint
15+
16+
USER 0:0
17+
SHELL ["/busybox/sh", "-c"]
18+
RUN ln -s /busybox/sh /bin/sh
19+
20+
COPY --from=pkgs /usr/src/cni/bin /usr/src/cni/bin
21+
22+
WORKDIR /
23+
2124
LABEL io.k8s.display-name="Container Network Plugins"
2225

2326
ADD ./entrypoint.sh /
2427

25-
ENTRYPOINT ["/entrypoint.sh"]
28+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)