Dockerfile 986 Bytes
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 \
Philipp Arras's avatar
Philipp Arras committed
8
    python3 python3-pip python3-scipy \
9
    # Documentation build dependencies
Philipp Arras's avatar
Philipp Arras committed
10
    python3-sphinx-rtd-theme \
11
    # Testing dependencies
Philipp Arras's avatar
Philipp Arras committed
12
    python3-pytest-cov \
13
    # Optional NIFTy dependencies
Philipp Arras's avatar
Philipp Arras committed
14
    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