-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (37 loc) · 1.2 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
39
40
41
42
43
44
45
46
FROM jupyter/minimal-notebook:5197709e9f23
LABEL maintainer="Matthias Komm"
USER root
# ffmpeg for matplotlib anim & dvipng for latex labels
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg dvipng && \
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# Install Python 3 packages
RUN conda install --quiet --yes \
'conda-forge::nb_conda' \
'conda-forge::rise' \
&& \
conda clean --all -f -y && \
npm cache clean --force && \
rm -rf "/home/${NB_USER}/.cache/yarn" && \
rm -rf "/home/${NB_USER}/.node-gyp" && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
RUN conda create -n py27 \
cmake \
python=2.7.15 \
conda-forge::tensorflow=1.6.0 \
conda-forge::root=6.18.04 \
conda-forge::Keras=2.1.6 \
conda-forge::uproot=3.11.3 \
conda-forge::h5py=2.10.0 \
conda-forge::matplotlib \
&& \
npm cache clean --force && \
rm -rf "/home/${NB_USER}/.cache/yarn" && \
rm -rf "/home/${NB_USER}/.node-gyp" && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
USER $NB_UID
RUN git clone --depth 1 https://github.com/matt-komm/pyhep20_tfpipeline.git rtf
WORKDIR $HOME/rtf