Dockerfile 913 Bytes
Newer Older
1 2
FROM debian:testing-slim

3
RUN apt-get update && apt-get install -y \
Martin Reinecke's avatar
Martin Reinecke committed
4 5
    # Needed for setup
    git python3-pip \
6
    # Packages needed for NIFTy
Martin Reinecke's avatar
Martin Reinecke committed
7
    python3-scipy \
8
    # Documentation build dependencies
9
    python3-sphinx-rtd-theme dvipng texlive-latex-base texlive-latex-extra \
10
    # Testing dependencies
Martin Reinecke's avatar
Martin Reinecke committed
11
    python3-pytest-cov jupyter \
12
    # Optional NIFTy dependencies
Martin Reinecke's avatar
Martin Reinecke committed
13
    python3-mpi4py python3-matplotlib \
Martin Reinecke's avatar
Martin Reinecke committed
14
  # more optional NIFTy dependencies
15
  && pip3 install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git \
Martin Reinecke's avatar
Martin Reinecke committed
16
  && pip3 install git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git \
17
  && pip3 install git+https://gitlab.mpcdf.mpg.de/mtr/pypocketfft.git \
Martin Reinecke's avatar
Martin Reinecke committed
18
  && pip3 install jupyter \
Philipp Arras's avatar
Philipp Arras committed
19
  && rm -rf /var/lib/apt/lists/*
Philipp Arras's avatar
Philipp Arras committed
20

21 22 23
# Set matplotlib backend
ENV MPLBACKEND agg

24 25 26
# Create user (openmpi does not like to be run as root)
RUN useradd -ms /bin/bash testinguser
USER testinguser
Philipp Arras's avatar
Philipp Arras committed
27
WORKDIR /home/testinguser