Skip to content

Commit

Permalink
Merge pull request #109 from 2i2c-org/fix-pycurl-issue
Browse files Browse the repository at this point in the history
Install pycurl from source
  • Loading branch information
GeorgianaElena committed May 27, 2024
2 parents e35de03 + e4c10c5 commit c0dc769
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions images/binderhub-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ RUN apt-get update \
COPY requirements.txt requirements.txt
ARG PIP_CACHE_DIR=/tmp/pip-cache
RUN --mount=type=cache,target=${PIP_CACHE_DIR} \
pip install build \
&& pip wheel \
pip wheel \
--wheel-dir=/tmp/wheels \
# pycurl wheels for 7.45.3 have problems finding CAs
# https://github.com/pycurl/pycurl/issues/834
--no-binary pycurl \
-r requirements.txt


Expand Down Expand Up @@ -62,9 +64,12 @@ COPY requirements.txt requirements.txt
#
RUN sed -i -E 's/binderhub @ git.+/binderhub/' requirements.txt
ARG PIP_CACHE_DIR=/tmp/pip-cache
# --no-index ensures _only_ wheels from the build stage are installed
RUN --mount=type=cache,target=${PIP_CACHE_DIR} \
--mount=type=cache,from=build-stage,source=/tmp/wheels,target=/tmp/wheels \
pip install --find-links=/tmp/wheels/ \
pip install \
--no-index \
--find-links=/tmp/wheels/ \
-r requirements.txt

ENV PYTHONUNBUFFERED=1
Expand Down

0 comments on commit c0dc769

Please sign in to comment.