Skip to content

Commit

Permalink
Merge pull request #1922 from glensc/0.26.11-support-py3.7-docker
Browse files Browse the repository at this point in the history
Build missing wheels only if needed (0.26.x)
  • Loading branch information
glensc authored Apr 28, 2024
2 parents 846d2e0 + a3016e5 commit 7653dfb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ 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 -x
set -- $(ls /wheels/*.gz /wheels/*.zip 2>/dev/null)
if [ $# -gt 0 ]; then
pip wheel "$@" --wheel-dir=/wheels
fi
eot

# Install app dependencies
FROM base AS build
Expand Down

0 comments on commit 7653dfb

Please sign in to comment.