forked from Zendro-dev/ZendroStarterPack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.shiny
42 lines (32 loc) · 1.67 KB
/
Dockerfile.shiny
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
FROM r-base:3.5.1
MAINTAINER Dr. Asis Hallab "[email protected]"
## Install dependencies and Download and install shiny server
## See https://www.rstudio.com/products/shiny/download-server/ for the
## instructions followed here.
RUN apt-get update && apt-get dist-upgrade -y && \
apt-get install -y -t unstable libssl-dev libxml2-dev \
sudo gdebi-core pandoc pandoc-citeproc libcurl4-gnutls-dev \
libcairo2-dev/unstable libxt-dev git subversion && \
apt-get autoremove -y && \
wget --no-verbose https://download3.rstudio.org/ubuntu-14.04/x86_64/VERSION -O "version.txt" && \
VERSION=$(cat version.txt) && \
wget --no-verbose "https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-$VERSION-amd64.deb" -O ss-latest.deb && \
gdebi -n ss-latest.deb && \
rm -f version.txt ss-latest.deb && \
R -e "install.packages(c('shiny', 'rmarkdown', 'httr'), repos='https://cran.rstudio.com/')" && \
rm -rf /var/lib/apt/lists/*
EXPOSE 3838
# Shiny examples are stored here
# /usr/local/lib/R/site-library/shiny/examples/*
# Executable
COPY shiny-server.sh /usr/bin/shiny-server.sh
RUN chmod u+x /usr/bin/shiny-server.sh
# Copy the default entry Rmd
COPY helloWorld.Rmd /opt
## Uncomment the line below to include a custom configuration file. You can download the default file at
## https://raw.githubusercontent.com/rstudio/shiny-server/master/config/default.config
## (The line below assumes that you have downloaded the file above to ./shiny-customized.config)
## Documentation on configuration options is available at
## http://docs.rstudio.com/shiny-server/
# COPY shiny-customized.config /etc/shiny-server/shiny-server.conf
CMD ["/usr/bin/shiny-server.sh"]