Dockerfile 1.1 KB
Newer Older
Philipp Arras's avatar
Philipp Arras committed
1
2
FROM debian:testing-slim

3
4
5
6
7
RUN apt-get update && apt-get install -y \
    # Needed for gitlab tests
    git \
    # Packages needed for NIFTy
    libfftw3-dev \
Martin Reinecke's avatar
Martin Reinecke committed
8
    python3 python3-pip python3-dev python3-future python3-scipy cython3 \
9
10
11
    # Documentation build dependencies
    python-sphinx python-sphinx-rtd-theme python-numpydoc \
    # Testing dependencies
Martin Reinecke's avatar
Martin Reinecke committed
12
    python3-coverage python3-parameterized python3-pytest python3-pytest-cov \
13
    # Optional NIFTy dependencies
Martin Reinecke's avatar
Martin Reinecke committed
14
    openmpi-bin libopenmpi-dev python3-mpi4py \
15
16
17
18
19
20
    # Packages needed for NIFTy
  && pip3 install pyfftw \
  # Optional NIFTy dependencies
  && pip3 install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git \
  # Testing dependencies
  && rm -rf /var/lib/apt/lists/*
Philipp Arras's avatar
Tes  
Philipp Arras committed
21

Philipp Arras's avatar
Philipp Arras committed
22
# Needed for demos to be running
Martin Reinecke's avatar
Martin Reinecke committed
23
24
RUN apt-get update && apt-get install -y python3-matplotlib \
  && python3 -m pip install --upgrade pip && python3 -m pip install jupyter \
Philipp Arras's avatar
Philipp Arras committed
25
  && rm -rf /var/lib/apt/lists/*
Philipp Arras's avatar
Philipp Arras committed
26

27
28
29
# Set matplotlib backend
ENV MPLBACKEND agg

Philipp Arras's avatar
Philipp Arras committed
30
31
32
# 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
33
WORKDIR /home/testinguser