From 48798ade7294fc4b3d65cbdb6eeb73d450ee5d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 31 Aug 2023 19:17:24 +0300 Subject: [PATCH] Build missing wheels only if needed Apparently there's wheel now for x86_64: > PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 99c0a1ad6c..6941a8eac6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,10 @@ RUN \ # Build missing wheels RUN \ --mount=type=cache,id=pip,target=/root/.cache/pip \ - pip wheel $(ls /wheels/*.gz /wheels/*.zip 2>/dev/null) --wheel-dir=/wheels +</dev/null) + test -n "${1:-}" && pip wheel $(ls /wheels/*.gz /wheels/*.zip 2>/dev/null) --wheel-dir=/wheels +eot # Install app dependencies FROM base AS build