Skip to content

Commit

Permalink
Build missing wheels only if needed
Browse files Browse the repository at this point in the history
Apparently there's wheel now for x86_64:
> PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl
  • Loading branch information
glensc committed Aug 31, 2023
1 parent b536f3d commit 48798ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
<<eot
set -- $(ls /wheels/*.gz /wheels/*.zip 2>/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
Expand Down

0 comments on commit 48798ad

Please sign in to comment.