-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (29 loc) · 1.03 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
FROM rocker/r-ubuntu
# 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 \
pandoc \
pandoc-citeproc \
libcurl4-openssl-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libfontconfig1-dev \
libxml2-dev \
libharfbuzz-dev \
libfribidi-dev \
libtiff-dev
#libcurl4-gnutls-dev \
# install basic shiny functionality to R
RUN R -e "install.packages(c('shiny', 'rmarkdown', 'remotes'), repos='https://cloud.r-project.org/')"
# install Slick
RUN R -e "remotes::install_github('blue-matter/Slick', ref='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
# finally, instruct how to launch the Shiny app when the container is started
CMD ["R", "-e", "Slick::App(host='0.0.0.0', port=3838)"]