Content-Length: 296031 | pFad | http://github.com/faizanbashir/python-datascience/commit/5cf6b027c9dde0a5a5064072caaead433bdf6568

7C Updated dockerfile for python 3.6 · faizanbashir/python-datascience@5cf6b02 · GitHub
Skip to content

Commit 5cf6b02

Browse files
committed
Updated dockerfile for python 3.6
1 parent b7cb1c2 commit 5cf6b02

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ENV PACKAGES="\
4141
tcl \
4242
tk \
4343
libssl1.0 \
44-
"
44+
"
4545

4646
# PYTHON DATA SCIENCE PACKAGES
4747
# * numpy: support for large, multi-dimensional arrays and matrices
@@ -57,16 +57,21 @@ ENV PYTHON_PACKAGES="\
5757
scikit-learn \
5858
pandas \
5959
nltk \
60-
"
60+
"
6161

62-
RUN apk add --no-cache --virtual build-dependencies python --update py-pip \
62+
RUN apk add --no-cache --virtual build-dependencies python3 \
6363
&& apk add --virtual build-runtime \
64-
build-base python-dev openblas-dev freetype-dev pkgconfig gfortran \
64+
build-base python3-dev openblas-dev freetype-dev pkgconfig gfortran \
6565
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
66-
&& pip install --upgrade pip \
66+
&& python3 -m ensurepip \
67+
&& rm -r /usr/lib/python*/ensurepip \
68+
&& pip3 install --upgrade pip setuptools \
69+
&& ln -sf /usr/bin/python3 /usr/bin/python \
70+
&& ln -sf pip3 /usr/bin/pip \
71+
&& rm -r /root/.cache \
6772
&& pip install --no-cache-dir $PYTHON_PACKAGES \
6873
&& apk del build-runtime \
6974
&& apk add --no-cache --virtual build-dependencies $PACKAGES \
7075
&& rm -rf /var/cache/apk/*
7176

72-
CMD ["python"]
77+
CMD ["python3"]

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/faizanbashir/python-datascience/commit/5cf6b027c9dde0a5a5064072caaead433bdf6568

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy