Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added GIT_CLONE_JOBS ARG to Dockerfile #34

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Start from the latest Swift nightly main toolchain
FROM swiftlang/swift:nightly-main-jammy

# The number of submodules fetched at the same time
ARG GIT_CLONE_JOBS=24

# Install ESP-IDF dependencies
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
Expand All @@ -19,7 +22,7 @@ RUN mkdir -p ~/esp \
--depth 1 \
--shallow-submodules \
--recursive https://github.com/espressif/esp-idf.git \
--jobs 24
--jobs $GIT_CLONE_JOBS

# Install ESP-IDF
RUN cd ~/esp/esp-idf \
Expand All @@ -41,7 +44,7 @@ RUN mkdir -p ~/esp \
--depth 1 \
--shallow-submodules \
--recursive https://github.com/espressif/esp-matter.git \
--jobs 24
--jobs $GIT_CLONE_JOBS

# Download ESP-Matter
RUN mkdir -p ~/esp \
Expand Down
Loading