@@ -46,29 +46,28 @@ WORKDIR /
4646# before SIGKILL when "docker stop" or "kubectl delete pod" is run. By doing
4747# that the pod can terminate very quickly.
4848COPY --from=build-stage /tini /tini
49-
49+
5050# The slim version doesn't include git as required by binderhub
51+ # or libcurl required by pycurl
5152RUN apt-get update \
5253 && apt-get install --yes \
5354 git \
55+ libcurl4 \
5456 && rm -rf /var/lib/apt/lists/*
5557
5658# Copy the built wheels from the build-stage. Also copy the image
5759# requirements.txt built from the binderhub package requirements.txt and the
58- # requirements.in file using the ./dependency script .
60+ # requirements.in file using pip-compile .
5961COPY --from=build-stage /tmp/binderhub/dist/*.whl pre-built-wheels/
6062COPY helm-chart/images/binderhub/requirements.txt .
6163
6264# Install pre-built wheels and the generated requirements.txt for the image.
65+ # make sure that imports work,
66+ # because wheels were built in the build-stage
6367RUN pip install --no-cache-dir \
6468 pre-built-wheels/*.whl \
65- -r requirements.txt
66-
67- # When using the ./dependency script to output a frozen environment, we do it
68- # from within this container. So below we conditionally install pip-tools for
69- # use by the ./dependency script.
70- ARG PIP_TOOLS=
71- RUN test -z "$PIP_TOOLS" || pip install --no-cache pip-tools==$PIP_TOOLS
69+ -r requirements.txt \
70+ && python3 -c "import pycurl, binderhub.app"
7271
7372ENTRYPOINT ["/tini" , "--" , "python3" , "-m" , "binderhub" ]
7473CMD ["--config" , "/etc/binderhub/config/binderhub_config.py" ]
0 commit comments