forked from madslupe/hddm_docker
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
executable file
·67 lines (52 loc) · 2.36 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
# This Dockerfile is for DDM tutorial
# The buid from the base of scipy-notebook, based on python 3.8
FROM jupyter/scipy-notebook:python-3.9
LABEL maintainer="Hu Chuan-Peng <[email protected]>"
USER root
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y apt-utils && \
apt-get install -y build-essential&& \
apt-get install -y gcc && \
apt-get install -y g++ && \
apt-get install -y gfortran && \
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# conda install -c conda-forge python-graphviz
RUN conda install -c conda-forge --quiet --yes \
'h5py' \
'hdf5' \
'netcdf4' \
&& \
conda clean --all -f -y && \
fix-permissions "/home/${NB_USER}"
RUN pip install --upgrade pip
RUN pip install pandas==2.0.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install git+https://gitee.com/epool/pymc2
RUN pip install git+https://gitee.com/epool/kabuki
RUN pip install git+https://gitee.com/epool/ssm-simulators@dockerHDDM_stable -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install git+https://gitee.com/epool/hddm.git && \
fix-permissions "/home/${NB_USER}"
RUN pip install arviz==0.15.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install seaborn==0.13.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install torch==1.9.0 -i https://pypi.tuna.tsinghua.edu.cn/simple && \
fix-permissions "/home/${NB_USER}" && \
rm -rf ~/.cache/pip
# Import matplotlib the first time to build the font cache.
ENV XDG_CACHE_HOME="/home/${NB_USER}/.cache/"
RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" &&\
fix-permissions "/home/${NB_USER}"
USER $NB_UID
WORKDIR $HOME
# Copy example data and scripts to the example folder
RUN mkdir /home/$NB_USER/OfficialTutorials && \
rm -r /home/$NB_USER/work && \
fix-permissions /home/$NB_USER
COPY /dockerHDDM_Quick_View.ipynb /home/$NB_USER
COPY /dockerHDDM_Workflow.ipynb /home/$NB_USER
COPY /OfficialTutorials/HDDM_Basic_Tutorial.ipynb /home/$NB_USER/OfficialTutorials
COPY /OfficialTutorials/HDDM_Regression_Stimcoding.ipynb /home/$NB_USER/OfficialTutorials
COPY /OfficialTutorials/Posterior_Predictive_Checks.ipynb /home/$NB_USER/OfficialTutorials
COPY /OfficialTutorials/LAN_Tutorial.ipynb /home/$NB_USER/OfficialTutorials