From 620a59783cd12b386fe757a1a52143347bd492d2 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 21 Jun 2025 14:51:17 +0800 Subject: [PATCH] build: parallel wheel pack and unpack --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c629f6..48f608b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,13 @@ RUN apk add uv binutils && pip install wheel RUN sh -c '[ $(getconf LONG_BIT) -eq 64 ] || apk add gcc cargo musl-dev libffi-dev openssl-dev' WORKDIR /build/ -COPY uv.lock pyproject.toml . +COPY uv.lock pyproject.toml ./ RUN uv export --frozen --no-dev --no-emit-package syncplay -o requirements.txt && \ pip wheel --require-hashes -r requirements.txt --wheel-dir /wheels/ -RUN ls /wheels/*.whl | xargs -n1 wheel unpack -d /wheels/unpack/ && \ - find /wheels/unpack/ -name '*.so' -exec strip {} \; && \ - ls -d /wheels/unpack/* | xargs -n1 wheel pack -d /wheels/ +RUN ls /wheels/*.whl | xargs -n1 -P0 wheel unpack -d /wheels/unpack/ && \ + find /wheels/unpack/ -name '*.so' -exec strip {} + && \ + ls -d /wheels/unpack/* | xargs -n1 -P0 wheel pack -d /wheels/ RUN --mount=type=bind,rw,source=./src/syncplay/,target=./src/syncplay/ \ sed -i '/ep_client/s/ =/-client =/g; s/requirements_gui.txt/\/dev\/null/g' ./src/syncplay/setup.py && \