@@ -6,21 +6,27 @@ MAINTAINER KBase Developer
6
6
# install line here, a git checkout to download code, or run any other
7
7
# installation scripts.
8
8
9
- # RUN apt-get update
9
+ # Update certs
10
+ RUN apt-get update
11
+ RUN apt-get install ca-certificates
12
+
13
+ # Fix Python SSL warnings for python < 2.7.9 (system python on Trusty is 2.7.6)
14
+ # https://github.com/pypa/pip/issues/4098
15
+ RUN pip install pip==8.1.2
16
+ RUN pip install --disable-pip-version-check requests requests_toolbelt pyopenssl --upgrade
17
+
18
+ # # update security libraries in the base image (deprecated approach)
19
+ # RUN pip install cffi --upgrade \
20
+ # && pip install pyopenssl --upgrade \
21
+ # && pip install ndg-httpsclient --upgrade \
22
+ # && pip install pyasn1 --upgrade \
23
+ # && pip install requests --upgrade \
24
+ # && pip install 'requests[security]' --upgrade
10
25
11
26
# Here we install a python coverage tool and an
12
27
# https library that is out of date in the base image.
13
-
14
28
RUN pip install coverage
15
29
16
- # update security libraries in the base image
17
- RUN pip install cffi --upgrade \
18
- && pip install pyopenssl --upgrade \
19
- && pip install ndg-httpsclient --upgrade \
20
- && pip install pyasn1 --upgrade \
21
- && pip install requests --upgrade \
22
- && pip install 'requests[security]' --upgrade
23
-
24
30
# -----------------------------------------
25
31
26
32
COPY ./ /kb/module
0 commit comments