-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
50 lines (32 loc) · 1.07 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
# Get shiny serves plus tidyverse packages image
FROM rocker/shiny-verse:latest
# System libraries of general use
RUN apt-get update && apt-get install -y \
sudo \
gdebi-core \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libboost-all-dev \
libmpfr-dev \
libnetcdf-dev \
xtail \
wget
# Install R packages required
## CRAN
RUN R -e "install.packages(c('shiny', 'DT', 'devtools', 'reshape2', 'plotly', 'fresh', 'shinyhelper', 'ggraph', 'rmarkdown', 'shinyWidgets', 'tidyverse', 'knitr', 'patchwork', 'BiocManager'), repos = 'http://cran.rstudio.com/')"
RUN R -e "devtools::install_version('bs4Dash', version = '0.5.0', repos = 'http://cran.us.r-project.org')"
## Bioconductor
RUN R -e "BiocManager::install(c('Biobase', 'POMA', 'MSnbase'))"
# Copy the app to the image
COPY /app /pomashiny
# Select port
EXPOSE 3838
# Allow permission
RUN sudo chown -R shiny:shiny /pomashiny
# Run app
CMD ["R", "-e", "shiny::runApp('/pomashiny', host = '0.0.0.0', port = 3838)"]