Skip to content

Commit 4776b26

Browse files
committed
chore: optimize esp32 build process
Refactor the esp32 build steps to include a git repack command after changing directories and clean up the dist directory after installation. This improves the efficiency of the build process and reduces unnecessary files. Signed-off-by: Chiho Sin <[email protected]>
1 parent 2970c79 commit 4776b26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Containerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ RUN cd ${IDF_PATH} \
111111
&& git submodule update --init --depth=1 --recursive \
112112
&& git repack -d \
113113
&& rm -rf "${IDF_PATH}"/.git \
114-
&& cd /workspace
114+
&& cd /workspace \
115+
&& git repack -d
115116

116117
RUN --mount=type=cache,target=/root/.cache/pip \
117118
--mount=type=cache,target=/opt/esp-idf-tools/dist \
118119
"${IDF_PATH}"/install.sh > /dev/null 2>&1 \
120+
&& rm -rf $IDF_TOOLS_PATH/dist \
119121
&& bash -c "source ${IDF_PATH}/export.sh && pip3 install --upgrade minify-html jsmin sh requests-cache"
120122

121123
RUN bash -c "source ${IDF_PATH}/export.sh && make -C ports/esp32 submodules && git repack -d"

0 commit comments

Comments
 (0)