Dockerfile: Install `requests` with the `security` feature and needed dependencies. This should resolve the SSL `InsecurePlatformWarning` that is issued during the build. However, this won't resolve the issue when installing `pip`.

pull/588/head
John Kirkham 10 years ago
parent f9bb2a2926
commit 587d72fa02

@ -31,6 +31,7 @@ RUN apt-get update -qq && \
git \
language-pack-en \
libcurl4-openssl-dev \
libffi-dev \
libsqlite3-dev \
libzmq3-dev \
pandoc \
@ -56,7 +57,9 @@ RUN curl -L https://github.com/krallin/tini/releases/download/v0.6.0/tini > tini
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
python2 get-pip.py && \
python3 get-pip.py && \
rm get-pip.py
rm get-pip.py && \
pip2 --no-cache-dir install requests[security] && \
pip3 --no-cache-dir install requests[security]
# Install some dependencies.
RUN pip2 --no-cache-dir install ipykernel && \

Loading…
Cancel
Save