This is an automated email from the ASF dual-hosted git repository.
raiden00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 404616d621 linux_Dockerfile: only copy gn binary into docker
404616d621 is described below
commit 404616d6214fa273f01288921eb42fbc1a72ea13
Author: zhanghongyu <[email protected]>
AuthorDate: Mon Dec 11 14:52:50 2023 +0800
linux_Dockerfile: only copy gn binary into docker
Minimize the size of the docker image
Signed-off-by: zhanghongyu <[email protected]>
---
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/