Dockerfile 761 Bytes
Newer Older
Philipp Arras's avatar
Philipp Arras committed
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
Philipp Arras's avatar
Philipp Arras committed
9
    python3-sphinx-rtd-theme \
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 14
    libfftw3-dev python3-mpi4py python3-matplotlib \
  # more optional NIFTy dependencies
15 16
  && pip3 install pyfftw \
  && pip3 install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git \
Martin Reinecke's avatar
Martin Reinecke committed
17
  && pip3 install jupyter \
Philipp Arras's avatar
Philipp Arras committed
18
  && rm -rf /var/lib/apt/lists/*
Philipp Arras's avatar
Philipp Arras committed
19

20 21 22
# Set matplotlib backend
ENV MPLBACKEND agg

Philipp Arras's avatar
Philipp Arras committed
23 24 25
# 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
26
WORKDIR /home/testinguser