Dockerfile 858 Bytes
Newer Older
Jait Dixit's avatar
Jait Dixit committed
1 2 3 4 5 6 7 8 9 10
FROM ubuntu:latest

# dependencies via apt
RUN \
    apt-get update && \
    apt-get install -y build-essential python python-pip python-dev git \
    gfortran autoconf gsl-bin libgsl-dev python-matplotlib openmpi-bin \
    libopenmpi-dev libatlas-base-dev libfftw3-bin libfftw3-dev \
    libfftw3-double3 libfftw3-long3 libfftw3-mpi-dev libfftw3-mpi3 \
    libfftw3-quad3 libfftw3-single3 libhdf5-10 libhdf5-dev \
11
    libhdf5-openmpi-10 libhdf5-openmpi-dev hdf5-tools python-h5py python-pyfftw
Jait Dixit's avatar
Jait Dixit committed
12 13 14 15 16

# python dependencies
ADD ci/requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

17 18 19
# install pyHealpix
ADD ci/install_pyHealpix.sh /tmp/install_pyHealpix.sh
RUN cd /tmp && chmod +x install_pyHealpix.sh && ./install_pyHealpix.sh
Jait Dixit's avatar
Jait Dixit committed
20 21 22 23 24 25 26

# copy sources and install nifty
COPY . /tmp/NIFTy
RUN pip install /tmp/NIFTy

# Cleanup
RUN rm -r /tmp/*