-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (27 loc) · 1.14 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
# build the Docker image from the base image 'rocker/r-ver'
# this installs Ubuntu 20.04 OS and a recent version of R
FROM rocker/r-ver:4
# add the maintainer of this Docker image (this should be you in this case)
LABEL maintainer "Adrian Hordyk <[email protected]>"
# system libraries of general use
RUN apt-get update && apt-get install -y \
sudo \
build-essential \
git \
libicu-dev \
pandoc \
pandoc-citeproc \
zlib1g-dev
# install basic shiny functionality to R, including remotes to install from GitHub
RUN R -e "install.packages(c('shiny', 'rmarkdown', 'remotes'), repos='https://cloud.r-project.org/')"
# bamExtras
RUN R -e "remotes::install_github('nikolaifish/bamExtras')"
# openMSE
RUN R -e "remotes::install_github('blue-matter/openMSE')"
# install R package from shiny_live branch
RUN R -e "remotes::install_github(c('blue-matter/SAFMC-MSE'), 'shiny_live', dependencies=TRUE)"
# instruct Docker to expose port 3838 to the outside world
# (otherwise it will not be possible to connect to the Shiny application)
EXPOSE 3838
# launch the Shiny app when the container is started
CMD ["R", "-e", "SAMSE::Shiny(host='0.0.0.0', port=3838)"]