linux_Dockerfile: only copy gn binary into docker

Minimize the size of the docker image

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-12-11 14:52:50 +08:00 committed by Mateusz Szafoni
parent 2215278a53
commit 404616d621

View File

@ -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/