-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (27 loc) · 1.29 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
FROM continuumio/miniconda3:4.9.2
RUN mkdir /opt/callc
RUN mkdir /opt/callc/install
WORKDIR /opt/callc
COPY install/environment_callc.yml /opt/callc/install/
RUN conda env create -f install/environment_callc.yml
RUN apt install -y libxt6 sassc
RUN bash -c '. /opt/conda/etc/profile.d/conda.sh && conda activate callc && Rscript -e "install.packages(\"doMC\")"'
RUN bash -c '. /opt/conda/etc/profile.d/conda.sh && conda activate callc && conda install xlrd'
RUN bash -c '. /opt/conda/etc/profile.d/conda.sh && conda activate callc && conda install notebook\<6.1.6 rise matplotlib'
# debug only
RUN bash -c '. /opt/conda/etc/profile.d/conda.sh && conda activate callc && pip install trepan3k'
COPY install /opt/callc/install/
COPY rt /opt/callc/rt/
RUN mkdir /opt/callc/rt/test_preds
RUN chmod -R a+w /opt/callc/rt
RUN mkdir /data
COPY ljocha.scss patch-reveal-themes.sh /data/
WORKDIR /data
ARG prefix=/opt/conda/envs/callc
RUN sassc -I ${prefix}/share/jupyter/nbextensions/rise/reveal.js/css/theme/source ljocha.scss ljocha.css && ./patch-reveal-themes.sh ljocha.css && cp ljocha.css ${prefix}/share/jupyter/nbextensions/rise/reveal.js/css/theme
ENV PYTHONPATH=/opt/callc/rt
COPY sitola_9-21/* /data/
ENV PATH="${PATH}:/data"
ENV HOME /home/jovyan
RUN mkdir /home/jovyan
RUN chown -R 1000:1000 /data /home/jovyan