-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
81 lines (53 loc) · 2.45 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
FROM rocker/shiny:4.2.1
LABEL maintainer="SoniaGR <s.ruiz@ucl.ac.uk>"
RUN sudo apt-get update
####### System libraries #######
RUN sudo apt-get install -y --no-install-recommends \
sudo \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
git-core \
curl \
libsodium-dev \
libxml2-dev \
libicu-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends \
libmariadb-dev
RUN sudo apt-get update && apt-get install -y --no-install-recommends \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev
RUN apt-get update && apt-get install -y --no-install-recommends \
libudunits2-dev \
libharfbuzz-dev \
libfribidi-dev
RUN apt-get update && apt-get install -y --no-install-recommends \
cmake
####### R dependencies #######
RUN R -e 'install.packages(c("AER", "concaveman", "nloptr","units", "pbkrtest", "sf", "car", "terra", "lme4"), repos="http://cran.rstudio.com/", dependencies = T)'
RUN R -e 'install.packages(c("shiny", "shinydashboard", "ggstance", "bslib", "tidyverse", "BiocManager"),repos="http://cran.rstudio.com/", dependencies=T)'
RUN R -e 'BiocManager::install("GenomicRanges")'
RUN R -e 'install.packages(c("DBI", "shinyjs", "shinycssloaders", "shinyBS", "shinydashboard"), repos="http://cran.rstudio.com/", dependencies=T)'
RUN R -e 'install.packages(c("stringr", "data.table", "ggforce", "gridExtra", "sandwich"), repos="http://cran.rstudio.com/", dependencies = T)'
RUN R -e 'install.packages(c("DT"), repos="http://cran.rstudio.com/", dependencies = T)'
RUN R -e 'install.packages(c("shinylogs"), repos="http://cran.rstudio.com/", dependencies = T)'
######## ggtranscript ##########
RUN R -e 'install.packages(c("devtools"), repos="http://cran.rstudio.com/", dependencies = T)'
RUN R -e 'devtools::install_github("dzhang32/ggtranscript")'
####### other R libraries ######
RUN R -e 'install.packages(c("pbkrtest"), source="https://cran.rstudio.com/", dependencies = T)'
RUN R -e 'install.packages(c("ggpubr"), repos="http://cran.rstudio.com/", dependencies = T)'
RUN R -e 'install.packages(c("ggrepel"), repos="http://cran.rstudio.com/", dependencies = T)'
####### COPY shinyapp #########
COPY Rprofile.site /usr/lib/R/etc/
RUN mkdir /root/introverse
COPY ./introverse /root/introverse
####### EXPOSE #########
EXPOSE 3838
CMD ["R", "-e", "shiny::runApp('/root/introverse', host='0.0.0.0', port=3838)"]