Skip to content

Commit

Permalink
fix: add prefer-binary flag to pip install (#74)
Browse files Browse the repository at this point in the history
To stop pip from trying to build from source
  • Loading branch information
Zalk0 authored Aug 18, 2024
1 parent 13c363c commit d3f5bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY requirements.txt .
# If platform is arm then we add the piwheels index for prebuilt arm wheels
RUN if [ $(uname -m | cut -c 1-3) = "arm" ]; then \
echo -e "[global]\nextra-index-url=https://www.piwheels.org/simple" > /usr/local/pip.conf; fi && \
pip --no-cache-dir install -r requirements.txt
pip --no-cache-dir install -r requirements.txt --prefer-binary

COPY . .

Expand Down

0 comments on commit d3f5bcc

Please sign in to comment.