-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (40 loc) · 2.1 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
# Use base rocker image for shiny server and R
FROM rocker/shiny:4.0.5
# Make shiny server directory
RUN mkdir -p /srv/shiny-server
# Get system libraries
RUN apt-get update
RUN apt-get install -y \
git \
vim \
libcurl4-gnutls-dev \
libssl-dev \
libxml-parser-perl
# Install R packages
RUN R -e 'install.packages("devtools", repos="http://cran.us.r-project.org", dependencies = TRUE)'
RUN R -e 'install.packages("shiny", version = "1.7.1", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("visNetwork", version = "2.1.0", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("igraph", version = "1.3.5", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("dplyr", version = "1.0.2", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("shinyBS", version = "0.61", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("shinythemes", version = "1.2.0", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("shinydashboard", version = "0.7.2", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("shinydashboardPlus", version = "2.0.3", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("shinyWidgets", version = "0.7.4", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("shinyjs", version = "2.1.0", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("shinyalert", version = "2.1.0", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("data.table", version = "2.1.0", repos="http://cran.us.r-project.org")'
RUN R -e 'install.packages("BANN")'
# Copy contents of all multio-viz directories, keeping directory structure
RUN cd /tmp
RUN git clone https://github.com/lcrawlab/BANNs.git
RUN R CMD INSTALL BANNs/BANN_R/BANN_0.1.0.tar.gz
RUN mv BANNs /srv/shiny-server
ARG CACHEBUST=0
RUN if [ -z "$CACHEBUST" ]; then echo "using cache"; else git clone https://github.com/lcrawlab/multio-viz.git; fi
RUN mv multio-viz/* /srv/shiny-server
RUN mv /srv/shiny-server/app/* /srv/shiny-server
# Rscript load_multioviz.R
# # Run app
EXPOSE 3838
CMD ["/usr/bin/shiny-server"]