From 7a99e8fc7140debae3bd15f5a9f1c88537960905 Mon Sep 17 00:00:00 2001 From: "weizhou.lan@daocloud.io" Date: Fri, 19 Jul 2024 21:37:13 +0800 Subject: [PATCH] rdma-tools: cuda Signed-off-by: weizhou.lan@daocloud.io --- rdma-tools/image/Dockerfile | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/rdma-tools/image/Dockerfile b/rdma-tools/image/Dockerfile index c584c8d..c03de53 100644 --- a/rdma-tools/image/Dockerfile +++ b/rdma-tools/image/Dockerfile @@ -5,6 +5,20 @@ ARG BASE_IMAGE #========== root image ============== FROM ${BASE_IMAGE} as rootfs + +# TARGETOS is an automatic platform ARG enabled by Docker BuildKit. +ARG TARGETOS +# TARGETARCH is an automatic platform ARG enabled by Docker BuildKit. +ARG TARGETARCH + +ARG GIT_COMMIT_VERSION +ENV GIT_COMMIT_VERSION=${GIT_COMMIT_VERSION} +ARG GIT_COMMIT_TIME +ENV GIT_COMMIT_TIME=${GIT_COMMIT_TIME} +ARG VERSION +ENV VERSION=${VERSION} + + COPY /install-tools.sh /install-tools.sh COPY /test.sh /test.sh COPY /tools /tools @@ -24,21 +38,4 @@ RUN chmod +x /tools/* && mv /tools/* /usr/sbin && rm -rf /tools # check binary RUN chmod +x /test.sh && /test.sh && rm -f /test.sh -#============ -FROM scratch -LABEL maintainer="maintainer@spidernet-io" - -# TARGETOS is an automatic platform ARG enabled by Docker BuildKit. -ARG TARGETOS -# TARGETARCH is an automatic platform ARG enabled by Docker BuildKit. -ARG TARGETARCH - -ARG GIT_COMMIT_VERSION -ENV GIT_COMMIT_VERSION=${GIT_COMMIT_VERSION} -ARG GIT_COMMIT_TIME -ENV GIT_COMMIT_TIME=${GIT_COMMIT_TIME} -ARG VERSION -ENV VERSION=${VERSION} - -COPY --from=rootfs / / CMD ["/usr/bin/sleep","infinity"]