Skip to content

Commit 5d15f8f

Browse files
authored
Update Dockerfile to install minimal Zephyr SDK (#4515)
Reduce the time consumption for `docker build`.
1 parent e40b05a commit 5d15f8f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

product-mini/platforms/zephyr/simple/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ ARG ZEPHYR_SDK_VERSION=0.16.9
2727
# In west_lite.yml, the Zephyr version is set to v3.7.0
2828
#ARG ZEPHYR_VERSION=3.7.0
2929

30-
# Install the Zephyr Software Development Kit (SDK)
30+
# Install the Zephyr Software Development Kit (SDK) minimal version
3131
WORKDIR /root/zephyrproject/zephyr-sdk
3232
# hadolint ignore=DL4006
33-
RUN wget --progress=dot:giga https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZEPHYR_SDK_VERSION}/zephyr-sdk-${ZEPHYR_SDK_VERSION}_linux-x86_64.tar.xz \
33+
RUN wget --progress=dot:giga https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZEPHYR_SDK_VERSION}/zephyr-sdk-${ZEPHYR_SDK_VERSION}_linux-x86_64_minimal.tar.xz \
3434
&& wget --progress=dot:giga -O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZEPHYR_SDK_VERSION}/sha256.sum | shasum --check --ignore-missing \
35-
&& tar --strip-components=1 -xf zephyr-sdk-${ZEPHYR_SDK_VERSION}_linux-x86_64.tar.xz && rm zephyr-sdk-${ZEPHYR_SDK_VERSION}_linux-x86_64.tar.xz
35+
&& tar --strip-components=1 -xf zephyr-sdk-${ZEPHYR_SDK_VERSION}_linux-x86_64_minimal.tar.xz && rm zephyr-sdk-${ZEPHYR_SDK_VERSION}_linux-x86_64_minimal.tar.xz
3636
# hadolint ignore=DL4006
37-
# Install host tools and Register Zephyr SDK CMake package
38-
RUN ./setup.sh -h -c
37+
# Install arc tools, host tools and Register Zephyr SDK CMake package
38+
# If you want to use other toolchains, please change the -t option
39+
RUN ./setup.sh -t arc-zephyr-elf -h -c
3940

4041
# Install west
4142
# hadolint ignore=DL3013,DL3059

0 commit comments

Comments
 (0)