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 diff --git a/Dockerfile b/Dockerfile index 9a59f05..868880b 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 @@ -51,22 +51,28 @@ 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 \ 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"]
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: