Commit a4a3c001 authored by Philipp Arras's avatar Philipp Arras

Try to create more slim Docker layers

parent 9928939d
Pipeline #28615 passed with stages
in 18 minutes and 3 seconds
FROM debian:testing-slim FROM debian:testing-slim
RUN apt-get update RUN apt-get update && apt-get install -y \
# Needed for gitlab tests
# Needed for gitlab tests git \
RUN apt-get install -y git # Packages needed for NIFTy
libfftw3-dev \
# Packages needed for NIFTy python python-pip python-dev python-future python-scipy \
RUN apt-get install -y libfftw3-dev python3 python3-pip python3-dev python3-future python3-scipy \
RUN apt-get install -y python python-pip python-dev python-future python-scipy # Documentation build dependencies
RUN apt-get install -y python3 python3-pip python3-dev python3-future python3-scipy python-sphinx python-sphinx-rtd-theme python-numpydoc \
RUN pip install pyfftw # Testing dependencies
RUN pip3 install pyfftw python-nose python-parameterized \
python3-nose python3-parameterized \
# Optional NIFTy dependencies # Optional NIFTy dependencies
RUN apt-get install -y openmpi-bin libopenmpi-dev python-mpi4py python3-mpi4py openmpi-bin libopenmpi-dev python-mpi4py python3-mpi4py \
RUN pip install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git # Packages needed for NIFTy
RUN pip3 install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git && pip install pyfftw \
&& pip3 install pyfftw \
# Documentation build dependencies # Optional NIFTy dependencies
RUN apt-get install -y python-sphinx python-sphinx-rtd-theme python-numpydoc && pip install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git \
&& pip3 install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git \
# Testing dependencies # Testing dependencies
RUN apt-get install -y python-nose python-parameterized && pip install coverage \
RUN apt-get install -y python3-nose python3-parameterized && rm -rf /var/lib/apt/lists/*
RUN pip install coverage
# Create user (openmpi does not like to be run as root) # Create user (openmpi does not like to be run as root)
RUN useradd -ms /bin/bash testinguser RUN useradd -ms /bin/bash testinguser
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment