FROM inducer/debian-amd64-minbase MAINTAINER Andreas Kloeckner EXPOSE 9941 RUN useradd runpy # Temporarily needed for pandas RUN echo "deb http://httpredir.debian.org/debian unstable main contrib" >> /etc/apt/sources.list RUN echo "deb http://httpredir.debian.org/debian experimental main contrib" >> /etc/apt/sources.list RUN echo 'APT::Default-Release "testing";' >> /etc/apt/apt.conf RUN apt-get update RUN apt-get -y -o APT::Install-Recommends=0 -o APT::Install-Suggests=0 install \ python3-scipy \ python3-pip \ python3-matplotlib \ python3-pillow \ graphviz \ python3-pandas \ python3-sympy \ python3-pip \ python3-dev \ python3-setuptools \ gcc # RUN POCL_VER="1.2~rc2-1"; \ # apt-get -o APT::Install-Recommends=0 -o APT::Install-Suggests=0 -y install \ # "pocl-opencl-icd=$POCL_VER" \ # "libpocl2=$POCL_VER" \ # "libpocl2-common=$POCL_VER" \ # "ocl-icd-libopencl1" \ # "python3-pyopencl" RUN apt-get clean RUN fc-cache RUN mkdir -p /opt/runpy ADD runpy /opt/runpy/ COPY code_feedback.py /opt/runpy/ COPY code_runpy_backend.py /opt/runpy/ RUN sed -i s/TkAgg/Agg/ /etc/matplotlibrc RUN echo "savefig.dpi : 80" >> /etc/matplotlibrc RUN echo "savefig.bbox : tight" >> /etc/matplotlibrc # RUN pip3 install --upgrade tensorflow RUN rm -Rf /root/.cache RUN find /usr/lib/python3/ -name '*cpython-37m*.so' -delete # may use ./flatten-container.sh to reduce disk space