Skip to content
Snippets Groups Projects
Dockerfile 1.44 KiB
FROM jupyter/base-notebook:python-3.9

LABEL maintainer "Eppelt, Jonas jonas.eppelt@kit.edu"

USER root

### fixing timezone issues and make sure certificate lists are up to date
RUN apt-get update && apt-get install -y tzdata curl dnsutils traceroute
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get install --reinstall ca-certificates

### adding github as trusted certificate
RUN openssl s_client -showcerts -servername github.com -connect github.com:443 </dev/null 2>/dev/null | \
    sed -n -e '/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/ p'  > github-com.pem && \
    cat github-com.pem | sudo tee -a /etc/ssl/certs/ca-certificates.crt

### run apt-get installs for Latex for notebook conversion
RUN apt-get update -y && apt-get upgrade -y && \
    apt-get install -y nano vim pandoc dvipng git texlive-xetex texlive texlive-lang-german texlive-latex-extra \
    dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev libssl-dev --upgrade  && \
    apt-get clean && rm -rf /var/lib/apt/lists/*


### installing pip packages
RUN pip install numpy seaborn scipy matplotlib uncertainties pyunfold PhyPraKit pandas\
    kafe2 pydot graphviz scikit-learn jupytext nbgitpuller jupyterlab-git ipympl pyarrow ipywidgets --upgrade --no-cache-dir

RUN pip install iminuit --no-cache

RUN export NBGITPULLER_PARENTPATH=/home/$NB_USER

### set Workdir
WORKDIR /home

### set User back
USER $NB_USER