FROM aellery/esys.escript.trilinos.nompi

LABEL maintainer="a.ellery@uq.edu.au"

ENV DEBIAN_FRONTEND=noninteractive

# install escript
WORKDIR /home/
RUN git clone https://github.com/esys-escript/esys-escript.github.io --depth 1 .
RUN scons openmp=1 \
      pythoncmd=`which python3` \
      pythonlibpath=/usr/lib/x86_64-linux-gnu/ \
      pythonincpath=/usr/include/python3.9/ \
      pythonlibname=python3.9 \
      boost_libs=boost_python39 werror=0 \
      paso=0 trilinos=1 trilinos_prefix=/usr/ build_full -j`nproc` \
      prefix=/usr/ || cat config.log
RUN rm -rf *

WORKDIR /tmp

CMD ["/bin/bash"]
