-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
86 lines (70 loc) · 1.88 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
####################################################
#
### BUILD IMAGE
# docker build -t icrsc/locus-explorer:latest .
#
### RUN IMAGE
# docker run -p 3838:3838 --rm --name locus-explorer icrsc/locus-explorer:latest
#
# Should then be visible on http://localhost:3838/
#
# PUSH IMAGE
# docker push icrsc/locus-explorer:latest
####################################################
#https://github.com/lescailab/r-ggbio-reporting/blob/main/Dockerfile
#FROM r-base
FROM rocker/r-ver:4.3.2
# IGRAPH - https://r.igraph.org/articles/installation-troubleshooting
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
gfortran \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libmkl-rt \
libglpk-dev \
libxml2-dev \
apt-file \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN apt-get install -y \
procps \
libcurl4-openssl-dev \
libfontconfig1-dev \
libxml2 \
libxml2-dev \
libz-dev \
libbz2-dev \
libclang-dev \
liblzma-dev \
python3 \
python3-pip \
wget \
make \
gcc \
libssl-dev \
pandoc
WORKDIR /app
# Copy relevant app files
RUN mkdir www
COPY www ./www
RUN mkdir Data
COPY Data ./Data
COPY global.R server.R ui.R README.md ./
RUN Rscript -e "install.packages('BiocManager')"
RUN Rscript -e "BiocManager::install(c(\
'tidyverse', \
'stringr', \
'biovizBase', \
'GenomicRanges', \
'ggbio', \
'knitr' \
))"
RUN Rscript -e 'install.packages(c("shiny","dplyr","tidyr","lazyeval","data.table","ggplot2","ggrepel","knitr","markdown","DT","lattice","acepack","cluster","DBI","colourpicker","igraph","visNetwork", "devtools"))'
RUN R -e 'BiocManager::install(c("TxDb.Hsapiens.UCSC.hg19.knownGene","org.Hs.eg.db","rtracklayer"))'
RUN installGithub.r oncogenetics/oncofunco
EXPOSE 3838
CMD Rscript -e "shiny::runApp('/app', port = 3838, host = '0.0.0.0')"