-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
40 lines (26 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
# https://github.com/jupyter/docker-stacks
# https://mybinder.org/v2/gh/restrepo/bsm-submodules/master
FROM jupyter/scipy-notebook
#My packages
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends python3-setuptools python3-dev build-essential gfortran feynmf&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN easy_install pip
RUN pip install pyslha bash_kernel
RUN python -m bash_kernel.install
USER $NB_USER
#RUN conda create -n ipykernel_py2 python=2 ipykernel --yes
#RUN source activate ipykernel_py2 # On Windows, remove the word 'source'
#RUN python -m ipykernel install --user
# Make sure the contents of our repo are in ${HOME}
COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
#RUN python2 -m pip install ipykernel
USER ${NB_USER}
RUN git checkout $(find BSM/SARAH/Models/ -type d |tail -n1 | awk -F'Models/' '{print $NF}' | sed 's/\//+/g')
RUN sed -i "s/MODEL=SM/MODEL=$(ls -ld BSM/SPHENO/* | awk -F'/' '{print $NF}')/" index.ipynb