-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
executable file
·61 lines (49 loc) · 1.52 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
FROM alpine/git:1.0.7 as git
WORKDIR /root
RUN git clone https://github.com/gversmee/dbgap2x.git
FROM jupyter/base-notebook:38f518466042
LABEL maintainer="Gregoire Versmee <gregoire.versmee@gmail.com>"
RUN conda install --quiet --yes \
'r-base=3.4.1' \
'r-irkernel=0.8.*' \
'r-rcurl=1.95.*' \
'r-xml=3.98*' \
'r-data.table' \
'r-httr' \
'r-rlist' && \
conda clean --all -f -y && \
fix-permissions $CONDA_DIR
RUN echo "c = get_config()\n\
c.NotebookApp.ip = '0.0.0.0'\n\
c.NotebookApp.port = 8888\n\
c.FileContentsManager.delete_to_trash = False\n\
c.IPKernelApp.pylab = 'inline'\n\
c.NotebookApp.password = 'sha1:48b3bade9809:6e4fca934155cb2552e409a895a22534ff61a837'" > $HOME/.jupyter/jupyter_notebook_config.py
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
# libapparmor1 \
# libedit2 \
# libssl1.0.0 \
# tzdata \
# unixodbc \
# unixodbc-dev \
# r-cran-rodbc \
# gfortran \
# gcc \
lsb-release \
psmisc \
fonts-dejavu \
docker.io && \
usermod -aG docker $NB_USER && \
service docker start && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=git /root/dbgap2x $HOME/dbgap2x
RUN jupyter trust $HOME/dbgap2x/dbgap2x.ipynb
RUN Rscript -e "install.packages('$HOME/dbgap2x', repos = NULL, type = 'source')" && \
chown -R $NB_USER $HOME/dbgap2x && \
chmod -R 4775 $HOME/dbgap2x && \
rm -rf $HOME/.local && \
fix-permissions $HOME
WORKDIR $HOME/dbgap2x