From 587d72fa0269febe00b5616709ee7a64f9cec882 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Sat, 10 Oct 2015 17:42:36 -0400 Subject: [PATCH] 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`. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1786c1b32..09bac2b54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \