From b7cb1c263e7c9286a6b5190c1f93d387ecd6f9d7 Mon Sep 17 00:00:00 2001 From: faizanbashir Date: Tue, 15 Jan 2019 10:38:42 +0530 Subject: [PATCH 1/3] Updated tag for docker image --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c11084f..4c8eedd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,4 @@ services: script: - docker ps - - docker run -dit faizanbashir/python:2.7 sh \ No newline at end of file + - docker run -it faizanbashir/python:3.6 sh \ No newline at end of file From 5cf6b027c9dde0a5a5064072caaead433bdf6568 Mon Sep 17 00:00:00 2001 From: faizanbashir Date: Tue, 15 Jan 2019 10:39:18 +0530 Subject: [PATCH 2/3] Updated dockerfile for python 3.6 --- Dockerfile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a59f05..052d234 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,7 +41,7 @@ ENV PACKAGES="\ tcl \ tk \ libssl1.0 \ -" + " # PYTHON DATA SCIENCE PACKAGES # * numpy: support for large, multi-dimensional arrays and matrices @@ -57,16 +57,21 @@ ENV PYTHON_PACKAGES="\ scikit-learn \ pandas \ nltk \ -" + " -RUN apk add --no-cache --virtual build-dependencies python --update py-pip \ +RUN apk add --no-cache --virtual build-dependencies python3 \ && apk add --virtual build-runtime \ - build-base python-dev openblas-dev freetype-dev pkgconfig gfortran \ + build-base python3-dev openblas-dev freetype-dev pkgconfig gfortran \ && ln -s /usr/include/locale.h /usr/include/xlocale.h \ - && pip install --upgrade pip \ + && python3 -m ensurepip \ + && rm -r /usr/lib/python*/ensurepip \ + && pip3 install --upgrade pip setuptools \ + && ln -sf /usr/bin/python3 /usr/bin/python \ + && ln -sf pip3 /usr/bin/pip \ + && rm -r /root/.cache \ && pip install --no-cache-dir $PYTHON_PACKAGES \ && apk del build-runtime \ && apk add --no-cache --virtual build-dependencies $PACKAGES \ && rm -rf /var/cache/apk/* -CMD ["python"] \ No newline at end of file +CMD ["python3"] \ No newline at end of file From 676ca4edb2d36d46e52fb8f816fabf2299fac625 Mon Sep 17 00:00:00 2001 From: Christoph Balthaus Date: Thu, 23 May 2019 19:41:07 +0200 Subject: [PATCH 3/3] Cython is missing when building 3.6 branch #1 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 052d234..868880b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,6 +51,7 @@ ENV PACKAGES="\ # * pandas: library providing high-performance, easy-to-use data structures and data analysis tools # * nltk: suite of libraries and programs for symbolic and statistical natural language processing for English ENV PYTHON_PACKAGES="\ + cython \ numpy \ matplotlib \ scipy \ @@ -74,4 +75,4 @@ RUN apk add --no-cache --virtual build-dependencies python3 \ && apk add --no-cache --virtual build-dependencies $PACKAGES \ && rm -rf /var/cache/apk/* -CMD ["python3"] \ No newline at end of file +CMD ["python3"]