FROM debian:stable-slim MAINTAINER Lucas Frérot # Add contrib and non-free RUN sed -i 's/main/main contrib non-free/' /etc/apt/sources.list # Install dependencies RUN apt-get -qq update && apt-get install -qq -y \ g++ \ git \ libboost-dev \ libthrust-dev \ libfftw3-dev \ libfftw3-mpi-dev \ python3-dev \ python3-numpy \ python3-pip \ python3-scipy \ python3-h5py \ python3-netcdf4 \ python3-mpi4py \ python3-matplotlib \ doxygen \ scons \ && rm -rf /var/lib/apt/lists/* RUN python3 -m pip install uvw # Basic setup RUN mkdir -p /src/tamaas COPY . /src/tamaas RUN rm -f /src/tamaas/build-setup.conf # Build arguments ARG BACKEND=cpp ARG FFTW_THREADS=none ARG USE_MPI=False # Compiling and installing RUN cd /src/tamaas \ && scons \ backend=$BACKEND \ fftw_threads=$FFTW_THREADS \ use_mpi=$USE_MPI \ verbose=true \ py_exec=python3 \ prefix=/usr/local \ && scons install \ && cd / && rm -rf /src/tamaas