Dockerfile 741 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
    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
Philipp Arras's avatar
Philipp Arras committed
15
  && DUCC0_OPTIMIZATION=portable pip3 install ducc0 finufft jupyter sphinx pydata-sphinx-theme \
Philipp Arras's avatar
Philipp Arras committed
16
  && rm -rf /var/lib/apt/lists/*
Philipp Arras's avatar
Philipp Arras committed
17

18
19
20
# Set matplotlib backend
ENV MPLBACKEND agg

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