-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (30 loc) · 949 Bytes
/
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
FROM jupyter/datascience-notebook:8d22c86ed4d7
# Set user
ENV NB_USER jovyan
ENV NB_UID 1000
ENV HOME /home/${NB_USER}
## Change user to root to install
USER root
##
RUN apt-get install gzip
RUN ln -s /bin/tar /bin/gtar
## Add Conda stuff
RUN conda install --quiet --yes \
xeus-cling=0.4.5 \
xtensor=0.16.4 \
xtensor-blas=0.11.1 \
r-cairo \
-c QuantStack && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
## run any install.R script we find
RUN R ---slave -e "install.packages(c('Cairo'), repos='https://mran.microsoft.com/snapshot/2018-07-01', method='libcurl')"
## NOTE: Needs 'cairo' capability
COPY ./irkernel.json /opt/conda/share/jupyter/kernels/ir/kernel.json
# Make sure the contents of our repo are in ${HOME}
COPY . ${HOME}
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
# Specify the default command to run
CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]