# Copyright (c) Vince Croft # Distributed under the terms of the Modified BSD License. ARG BASE_CONTAINER=ubuntu FROM $BASE_CONTAINER LABEL maintainer="RooFit Dev team " USER root ENV TZ=Europe/Amsterdam ENV PYTHONPATH ${PYTHONPATH}:/usr/local/lib/root/ COPY packages packages ARG GIT_URL="https://github.com/roofit-dev/root/archive/master.zip" ARG CLING_URL="https://raw.githubusercontent.com/root-project/cling/master/tools/packaging/cpt.py" RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN apt-get update -qq && apt-get -y upgrade && \ DEBIAN_FRONTEND=noninteractive && \ apt-get install -y $(cat packages) && \ apt-get -y install python-dev python-pip && \ pip install jupyter scipy scikit-learn numpy matplotlib\ && localedef -i en_US -f UTF-8 en_US.UTF-8 \ && rm -rf /var/lib/apt/lists/* /tmp/* /packages \ && echo 'built deps' RUN wget --no-check-certificate -O master.zip $GIT_URL && \ unzip master.zip && \ rm master.zip && \ echo 'building root' RUN cd .. && mkdir root-build && cd root-build &&\ cmake ../root-master/ -Dccache=ON -Droofit=ON -Dminuit2=ON -Dclad=OFF && \ make -j1 && make install && \ echo 'built root' && \ /bin/bash -c "source bin/thisroot.sh" RUN chmod +x /usr/local/bin/thisroot.sh WORKDIR /home EXPOSE 8888 ENTRYPOINT ["bash", "/usr/local/bin/thisroot.sh"] CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--allow-root"]