File tree Expand file tree Collapse file tree 19 files changed +152
-0
lines changed Expand file tree Collapse file tree 19 files changed +152
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,14 @@ COPY --from=uv_build /uv /uvx /bin/
8787# packages may be moved to production image easily by copying the venv
8888RUN uv venv "${VIRTUAL_ENV}"
8989
90+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
91+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
92+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
93+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
94+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
95+ export UV_CONCURRENT_INSTALLS=1; \
96+ fi
97+
9098RUN --mount=type=cache,target=/root/.cache/uv \
9199 uv pip install --upgrade \
92100 wheel \
Original file line number Diff line number Diff line change @@ -80,6 +80,14 @@ COPY --from=uv_build /uv /uvx /bin/
8080# packages may be moved to production image easily by copying the venv
8181RUN uv venv "${VIRTUAL_ENV}"
8282
83+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
84+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
85+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
86+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
87+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
88+ export UV_CONCURRENT_INSTALLS=1; \
89+ fi
90+
8391RUN --mount=type=cache,target=/root/.cache/uv \
8492 uv pip install --upgrade \
8593 wheel \
Original file line number Diff line number Diff line change @@ -100,6 +100,14 @@ COPY --from=uv_build /uv /uvx /bin/
100100# packages may be moved to production image easily by copying the venv
101101RUN uv venv "${VIRTUAL_ENV}"
102102
103+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
104+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
105+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
106+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
107+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
108+ export UV_CONCURRENT_INSTALLS=1; \
109+ fi
110+
103111RUN --mount=type=cache,target=/root/.cache/uv \
104112 uv pip install --upgrade \
105113 wheel \
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ COPY --from=uv_build /uv /uvx /bin/
8181# packages may be moved to production image easily by copying the venv
8282RUN uv venv "${VIRTUAL_ENV}"
8383
84+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
85+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
86+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
87+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
88+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
89+ export UV_CONCURRENT_INSTALLS=1; \
90+ fi
91+
8492RUN --mount=type=cache,target=/root/.cache/uv \
8593 uv pip install --upgrade \
8694 wheel \
Original file line number Diff line number Diff line change @@ -99,6 +99,14 @@ COPY --from=uv_build /uv /uvx /bin/
9999# packages may be moved to production image easily by copying the venv
100100RUN uv venv "${VIRTUAL_ENV}"
101101
102+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
103+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
104+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
105+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
106+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
107+ export UV_CONCURRENT_INSTALLS=1; \
108+ fi
109+
102110RUN --mount=type=cache,target=/root/.cache/uv \
103111 uv pip install --upgrade \
104112 wheel \
Original file line number Diff line number Diff line change @@ -90,6 +90,14 @@ COPY --from=uv_build /uv /uvx /bin/
9090# NOTE: python virtualenv is used here such that installed packages may be moved to production image easily by copying the venv
9191RUN uv venv "${VIRTUAL_ENV}"
9292
93+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
94+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
95+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
96+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
97+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
98+ export UV_CONCURRENT_INSTALLS=1; \
99+ fi
100+
93101RUN --mount=type=cache,target=/root/.cache/uv \
94102 uv pip install --upgrade \
95103 wheel \
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ COPY --from=uv_build /uv /uvx /bin/
8181# packages may be moved to production image easily by copying the venv
8282RUN uv venv "${VIRTUAL_ENV}"
8383
84+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
85+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
86+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
87+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
88+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
89+ export UV_CONCURRENT_INSTALLS=1; \
90+ fi
91+
8492RUN --mount=type=cache,target=/root/.cache/uv \
8593 uv pip install --upgrade \
8694 wheel \
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ COPY --from=uv_build /uv /uvx /bin/
8181# packages may be moved to production image easily by copying the venv
8282RUN uv venv "${VIRTUAL_ENV}"
8383
84+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
85+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
86+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
87+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
88+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
89+ export UV_CONCURRENT_INSTALLS=1; \
90+ fi
91+
8492RUN --mount=type=cache,target=/root/.cache/uv \
8593 uv pip install --upgrade \
8694 wheel \
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ COPY --from=uv_build /uv /uvx /bin/
8181# packages may be moved to production image easily by copying the venv
8282RUN uv venv "${VIRTUAL_ENV}"
8383
84+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
85+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
86+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
87+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
88+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
89+ export UV_CONCURRENT_INSTALLS=1; \
90+ fi
91+
8492RUN --mount=type=cache,target=/root/.cache/uv \
8593 uv pip install --upgrade \
8694 wheel \
Original file line number Diff line number Diff line change @@ -78,6 +78,14 @@ COPY --from=uv_build /uv /uvx /bin/
7878# packages may be moved to production image easily by copying the venv
7979RUN uv venv "${VIRTUAL_ENV}"
8080
81+ # Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
82+ # These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
83+ # and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
84+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
85+ echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture" ; \
86+ export UV_CONCURRENT_INSTALLS=1; \
87+ fi
88+
8189RUN --mount=type=cache,target=/root/.cache/uv \
8290 uv pip install --upgrade \
8391 wheel \
You can’t perform that action at this time.
0 commit comments