Speed up submodule checkout in Dockerfile
Use --depth=1 for submodules, too. This also replaces perl init-repository for Qt as the only thing it does is fetches submodules, but there's no way to specify --depth=1 with it.
This commit is contained in:
parent
ce79c1f0c4
commit
bb75a6a31b
|
@ -531,7 +531,7 @@ COPY --from=xkbcommon ${LibrariesPath}/xkbcommon-cache /
|
||||||
ARG DEBUG
|
ARG DEBUG
|
||||||
RUN git clone -b ${QT_TAG} --depth=1 git://code.qt.io/qt/qt5.git qt_${QT} \
|
RUN git clone -b ${QT_TAG} --depth=1 git://code.qt.io/qt/qt5.git qt_${QT} \
|
||||||
&& cd qt_${QT} \
|
&& cd qt_${QT} \
|
||||||
&& perl init-repository --module-subset=qtbase,qtwayland,qtimageformats,qtsvg,qt5compat \
|
&& git submodule update --init --recursive --depth=1 qtbase qtwayland qtimageformats qtsvg qt5compat \
|
||||||
&& cd qtbase \
|
&& cd qtbase \
|
||||||
&& find ../../patches/qtbase_${QT} -type f -print0 | sort -z | xargs -r0 git apply \
|
&& find ../../patches/qtbase_${QT} -type f -print0 | sort -z | xargs -r0 git apply \
|
||||||
&& cd .. \
|
&& cd .. \
|
||||||
|
@ -587,7 +587,7 @@ RUN git init tg_owt \
|
||||||
&& git remote add origin $GIT/desktop-app/tg_owt.git \
|
&& git remote add origin $GIT/desktop-app/tg_owt.git \
|
||||||
&& git fetch --depth=1 origin 63a934db1ed212ebf8aaaa20f0010dd7b0d7b396 \
|
&& git fetch --depth=1 origin 63a934db1ed212ebf8aaaa20f0010dd7b0d7b396 \
|
||||||
&& git reset --hard FETCH_HEAD \
|
&& git reset --hard FETCH_HEAD \
|
||||||
&& git submodule update --init --recursive \
|
&& git submodule update --init --recursive --depth=1 \
|
||||||
&& rm -rf .git \
|
&& rm -rf .git \
|
||||||
&& cd src/third_party/pipewire \
|
&& cd src/third_party/pipewire \
|
||||||
&& meson build -Dspa-plugins=disabled \
|
&& meson build -Dspa-plugins=disabled \
|
||||||
|
|
Loading…
Reference in New Issue