@@ -6,7 +6,7 @@ ADD clean-layer.sh /tmp/clean-layer.sh
6
6
7
7
# Default to python3.7
8
8
RUN apt-get update && \
9
- update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1 && \
9
+ update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 && \
10
10
update-alternatives --config python && \
11
11
apt install -y python3-pip python3-venv && \
12
12
/tmp/clean-layer.sh
@@ -20,9 +20,11 @@ RUN apt-get update && \
20
20
patch libgit2-dev && \
21
21
/tmp/clean-layer.sh
22
22
23
- RUN apt-get update && apt-get install -y libatlas-base-dev libopenblas-dev libopencv-dev && \
24
- cd /usr/local/src && git clone --recursive --depth=1 --branch v1.6.x https://github.com/apache/incubator-mxnet.git mxnet && \
25
- cd mxnet && make -j$(nproc) USE_OPENCV=1 USE_BLAS=openblas && make rpkg && \
23
+ RUN apt-get update && apt-get install -y build-essential git ninja-build ccache libatlas-base-dev libopenblas-dev libopencv-dev python3-opencv && \
24
+ cd /usr/local/share && git clone --recursive --depth=1 --branch v1.8.x https://github.com/apache/incubator-mxnet.git mxnet && \
25
+ cd mxnet && cp config/linux.cmake config.cmake && rm -rf build && \
26
+ mkdir -p build && cd build && cmake .. && cmake --build . --parallel $(nproc) && \
27
+ cd .. && make -f R-package/Makefile rpkg && \
26
28
/tmp/clean-layer.sh
27
29
28
30
# Needed for "h5" library
@@ -33,7 +35,7 @@ RUN apt-get install -y libhdf5-dev && \
33
35
apt-get install -y libpoppler-cpp-dev libtesseract-dev tesseract-ocr-eng && \
34
36
/tmp/clean-layer.sh
35
37
36
- RUN apt-get install -y libzmq3-dev python-pip default-jdk && \
38
+ RUN apt-get install -y libzmq3-dev default-jdk && \
37
39
apt-get install -y python-dev libcurl4-openssl-dev libssl-dev && \
38
40
pip install jupyter pycurl && \
39
41
# Install older tornado - https://github.com/jupyter/notebook/issues/4437
@@ -56,11 +58,14 @@ RUN apt-get install -y libzmq3-dev python-pip default-jdk && \
56
58
pip install papermill && \
57
59
/tmp/clean-layer.sh
58
60
61
+ # Miniconda
62
+ RUN curl -sL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o mconda-install.sh && \
63
+ bash -x mconda-install.sh -b -p miniconda && \
64
+ rm mconda-install.sh && \
65
+ /tmp/clean-layer.sh
66
+
59
67
# Tensorflow and Keras
60
- # Keras sets up a virtualenv and installs tensorflow
61
- # in the WORKON_HOME directory, so choose an explicit location for it.
62
- ENV WORKON_HOME=/usr/local/share/.virtualenvs
63
- RUN pip install --user virtualenv && R -e 'keras::install_keras(tensorflow = "2.3", extra_packages = c("pandas", "numpy", "pycryptodome"))'
68
+ RUN R -e 'keras::install_keras(tensorflow = "2.3", extra_packages = c("pandas", "numpy", "pycryptodome"), method="conda")'
64
69
65
70
# Install kaggle libraries.
66
71
# Do this at the end to avoid rebuilding everything when any change is made.
0 commit comments