File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ ENV PACKAGES="\
41
41
tcl \
42
42
tk \
43
43
libssl1.0 \
44
- "
44
+ "
45
45
46
46
# PYTHON DATA SCIENCE PACKAGES
47
47
# * numpy: support for large, multi-dimensional arrays and matrices
@@ -57,16 +57,21 @@ ENV PYTHON_PACKAGES="\
57
57
scikit-learn \
58
58
pandas \
59
59
nltk \
60
- "
60
+ "
61
61
62
- RUN apk add --no-cache --virtual build-dependencies python --update py-pip \
62
+ RUN apk add --no-cache --virtual build-dependencies python3 \
63
63
&& 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 \
65
65
&& 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 \
67
72
&& pip install --no-cache-dir $PYTHON_PACKAGES \
68
73
&& apk del build-runtime \
69
74
&& apk add --no-cache --virtual build-dependencies $PACKAGES \
70
75
&& rm -rf /var/cache/apk/*
71
76
72
- CMD ["python " ]
77
+ CMD ["python3 " ]
You can’t perform that action at this time.
0 commit comments