Oi Rafael, desculpa a demora.
Eu consegui buildar a imagem alterando a imagem base. usei a do python e removi a linhas do Docker file que instalavam o python:
FROM python:3.6
MAINTAINER Alessandro Adamo "alessandro.adamo@gmail.com"
ENV REFRESHED_AT 2017-06-10
RUN apt-get -qq update && \
apt-get -y dist-upgrade
RUN apt-get install -y --no-install-recommends \
fonts-dejavu \
gfortran \
gcc
RUN apt-get -y install pandoc texlive texlive-latex-extra texlive-xetex
RUN apt-get autoclean
RUN pip3 install --upgrade pip
# Fundamentals
RUN pip3 install --upgrade jupyter \
numpy \
scipy \
pandas \
pillow
# Math and Statistics
RUN pip3 install --upgrade sympy \
statsmodels
# Machine Learning
RUN pip3 install --upgrade Theano \
tensorflow \
scikit-learn \
keras \
gensim \
nltk
# Plotting and Visualization
RUN pip3 install --upgrade matplotlib \
bokeh \
ggplot \
plotly \
seaborn
# profilers
RUN pip3 install --upgrade line_profiler memory_profiler
RUN apt-get update && \
apt-get install -y \
build-essential \
cmake \
git \
wget \
unzip \
yasm \
pkg-config \
libswscale-dev \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libjasper-dev \
libavformat-dev \
libpq-dev
RUN pip install numpy
WORKDIR /
RUN wget https://github.com/opencv/opencv_contrib/archive/3.2.0.zip \
&& unzip 3.2.0.zip \
&& rm 3.2.0.zip
RUN wget https://github.com/Itseez/opencv/archive/3.2.0.zip \
&& unzip 3.2.0.zip \
&& mkdir /opencv-3.2.0/cmake_binary \
&& cd /opencv-3.2.0/cmake_binary \
&& cmake -DBUILD_TIFF=ON \
-DBUILD_opencv_java=OFF \
-DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib-3.2.0/modules \
-DWITH_CUDA=OFF \
-DENABLE_AVX=ON \
-DWITH_OPENGL=ON \
-DWITH_OPENCL=ON \
-DWITH_IPP=ON \
-DWITH_TBB=ON \
-DWITH_EIGEN=ON \
-DWITH_V4L=ON \
-DBUILD_TESTS=OFF \
-DBUILD_PERF_TESTS=OFF \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=$(python3.6 -c "import sys; print(sys.prefix)") \
-DPYTHON_EXECUTABLE=$(which python3.6) \
-DPYTHON_INCLUDE_DIR=$(python3.6 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
-DPYTHON_PACKAGES_PATH=$(python3.6 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") .. \
&& make install \
&& rm /3.2.0.zip \
&& rm -r /opencv-3.2.0 \
&& rm -r /opencv_contrib-3.2.0
RUN pip install flake8 pep8 --upgrade
# Add Tini. Tini operates as a process subreaper for jupyter. This prevents
# kernel crashes.
# ENV TINI_VERSION v0.14.0
ENV TINI_VERSION v0.6.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"]
RUN adduser --disabled-password --gecos '' ds
# useradd -ms /bin/bash ds
USER ds
WORKDIR /home/ds
RUN mkdir /home/ds/notebooks
WORKDIR /home/ds/notebooks
EXPOSE 8888
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--NotebookApp.token=''", "--NotebookApp.base_url='/'", "--NotebookApp.notebook_dir='/home/ds/notebooks'"]
Tenta ver se ela funciona pra você?
Admito que nao sei se a melhor solução que poderiamos ter, mas é um começo se funcionar pra você!
abraço!