From 404616d6214fa273f01288921eb42fbc1a72ea13 Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Mon, 11 Dec 2023 14:52:50 +0800 Subject: [PATCH] linux_Dockerfile: only copy gn binary into docker Minimize the size of the docker image Signed-off-by: zhanghongyu --- tools/ci/docker/linux/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/ci/docker/linux/Dockerfile b/tools/ci/docker/linux/Dockerfile index 26a1278d53..52c03c4f62 100644 --- a/tools/ci/docker/linux/Dockerfile +++ b/tools/ci/docker/linux/Dockerfile @@ -417,8 +417,9 @@ ENV WASI_SDK_PATH="/tools/wasi-sdk" ENV PATH="/tools/wamr:$PATH" # gn tool -COPY --from=nuttx-tools /tools/gn/ /tools/gn/ -ENV PATH="/tools/gn/gn/out:$PATH" +RUN mkdir -p /tools/gn +COPY --from=nuttx-tools /tools/gn/gn/out/gn /tools/gn +ENV PATH="/tools/gn:$PATH" # ZAP tool and nodejs packet COPY --from=nuttx-tools /tools/zap/ /tools/zap/