Skip to content

Commit

Permalink
linux_Dockerfile: only copy gn binary into docker
Browse files Browse the repository at this point in the history
Minimize the size of the docker image

Signed-off-by: zhanghongyu <[email protected]>
  • Loading branch information
zhhyu7 committed Dec 11, 2023
1 parent 449197c commit c950030
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/ci/docker/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit c950030

Please sign in to comment.