File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 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
125ARG VERSION=v1.3.0
136ARG 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+
2124LABEL io.k8s.display-name="Container Network Plugins"
2225
2326ADD ./entrypoint.sh /
2427
25- ENTRYPOINT ["/entrypoint.sh"]
28+ ENTRYPOINT ["/entrypoint.sh"]
You can’t perform that action at this time.
0 commit comments