Skip to content

Instantly share code, notes, and snippets.

@Venkatstatistics
Created October 12, 2018 20:19
Show Gist options
  • Save Venkatstatistics/cea4c7d6680a00c33db24a1528159359 to your computer and use it in GitHub Desktop.
Save Venkatstatistics/cea4c7d6680a00c33db24a1528159359 to your computer and use it in GitHub Desktop.
FROM rocker/r-ver:devel
RUN apt-get update && apt-get install -y \
sudo \
gdebi-core \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
wget
# Download and install shiny server
RUN 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 && \
. /etc/environment && \
R -e "install.packages(c('shiny', 'rmarkdown'), repos='$MRAN')" && \
cp -R /usr/local/lib/R/site-library/shiny/examples/* /srv/shiny-server/
EXPOSE 3838
COPY shiny-server.sh /usr/bin/shiny-server.sh
CMD ["/usr/bin/shiny-server.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment