@@ -123,12 +123,13 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
123
123
apt-get install -y nodejs
124
124
125
125
WORKDIR /tmp
126
- RUN git clone --recursive https://github.com/bodono/scs-python.git && \
127
- cd /tmp/scs-python && \
128
- python setup.py install --scs --gpu
126
+ RUN cd /tmp && \
127
+ git clone --recursive https://github.com/bodono/scs-python.git && \
128
+ cd scs-python && \
129
+ python3 setup.py install --scs --gpu
129
130
130
- COPY ./numpy- 1.19.4-cp36-cp36m-manylinux2010_x86_64.whl /tmp
131
- COPY ./pandas-1.0.4+4.g29edbab4a-cp36-cp36m-linux_x86_64.whl /tmp
131
+ ENV NUMPY_VERSION 1.19.4
132
+ ENV SCIPY_VERSION 1.5.4
132
133
RUN python3 -m pip install --no-cache-dir \
133
134
Cython==0.29.21 \
134
135
tornado==6.0.4 \
@@ -137,17 +138,19 @@ RUN python3 -m pip install --no-cache-dir \
137
138
jupyter==1.0.0 \
138
139
python-language-server[all] \
139
140
matplotlib==3.3.3
140
- ENV SCIPY_VERSION 1.5.4
141
+ RUN git clone --branch=v${NUMPY_VERSION} --depth=1 https://github.com/numpy/numpy.git numpy && \
142
+ cd numpy && \
143
+ git checkout -b v${NUMPY_VERSION} && \
144
+ cp site.cfg.example site.cfg && \
145
+ python3 setup.py bdist_wheel -d /tmp
146
+
141
147
# Install scipy
142
148
RUN cd /tmp && \
143
149
git clone --branch=v${SCIPY_VERSION} --depth=1 https://github.com/scipy/scipy.git scipy && \
144
150
cd scipy && \
145
151
git checkout -b v${SCIPY_VERSION} && \
146
152
cp site.cfg.example site.cfg && \
147
- python3 -m pip install -U --no-cache-dir \
148
- /tmp/numpy-1.19.4-cp36-cp36m-manylinux2010_x86_64.whl \
149
- /tmp/pandas-1.0.4+4.g29edbab4a-cp36-cp36m-linux_x86_64.whl \
150
- && \
153
+ python3 -m pip install -U --no-cache-dir /tmp/numpy-*.whl && \
151
154
python3 setup.py install
152
155
153
156
WORKDIR /tmp
@@ -210,7 +213,7 @@ RUN apt autoclean && \
210
213
rm -rf /tmp/*
211
214
212
215
# Install ipython kernelspec
213
- RUN /usr/bin/python3 -m ipykernel install --display-name "Python 3.6 (NGC 20.12 / TensorFlow 2.3) on Backend.AI" && \
216
+ RUN /usr/bin/python3 -m ipykernel install --display-name "Python 3.8 (NGC 20.12 / TensorFlow 2.3) on Backend.AI" && \
214
217
cat /usr/local/share/jupyter/kernels/python3/kernel.json
215
218
216
219
# Backend.AI specifics
0 commit comments