FROM debian:testing
MAINTAINER Till Junge <till.junge@epfl.ch>

RUN apt-get -qq update && apt-get -y -qq install libfftw3-dev libfftw3-mpi-dev libeigen3-dev libboost-test-dev python3-dev curl python3-numpy python3-scipy python3-breathe python3-sphinx python3-pytest python3-pip git doxygen python3-mpi4py g++-7 clang cmake mayavi2 locales && rm -rf /var/lib/apt/lists/*
# apt-get on one line due to https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 10

# generating utf8 locales is required by a lot of pip packages. Here, its because of mayavi
RUN  sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen &&     dpkg-reconfigure --frontend=noninteractive locales &&  update-locale LANG=en_US.UTF-8
ENV LANG C.UTF-8

RUN pip3 install --upgrade cpplint vtk
RUN pip3 install --upgrade mayavi