-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (37 loc) · 1.31 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
FROM jupyter/datascience-notebook
LABEL maintainer="filippo.valle@unito.it"
USER root
RUN apt-get update
RUN apt-get install sudo apt-utils --yes
ENV DEBIAN_FRONTEND=noninteractive
RUN ln -fs /usr/share/zoneinfo/Europe/Rome /etc/localtime
RUN apt-get install -y tzdata
RUN dpkg-reconfigure --frontend noninteractive tzdata
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& python3 -m pip install --upgrade pip
# install graph-tool
RUN conda install -c conda-forge mamba -y
RUN mamba install -c conda-forge graph-tool -y
# install project requirements
COPY requirements.txt /home/jovyan
RUN apt-get install libgtk-3-dev libjs-mathjax pandoc --yes
RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN python3 -m pip uninstall Pillow -y
RUN python3 -m pip install --no-cache-dir matplotlib
# get gdc-client for TCGA downloads
RUN wget https://gdc.cancer.gov/files/public/file/gdc-client_v1.6.1_Ubuntu_x64.zip
RUN unzip gdc-client_v1.6.1_Ubuntu_x64.zip
RUN mv gdc-client /usr/local/bin
RUN rm -f gdc-client_v1.6.1_Ubuntu_x64.zip
#R files
RUN apt-get install libgit2-dev --yes
COPY install_pkgs.R /home/jovyan
RUN Rscript install_pkgs.R
ENV PYTHONIOENCODING=utf8
USER jovyan
WORKDIR /home/jovyan/work
ENTRYPOINT jupyter lab
CMD [""]