Skip to content

Instantly share code, notes, and snippets.

@pishen
Last active March 17, 2017 03:17
Show Gist options
  • Save pishen/37f9c2070666639a74de751edb0027e9 to your computer and use it in GitHub Desktop.
Save pishen/37f9c2070666639a74de751edb0027e9 to your computer and use it in GitHub Desktop.
shiny-plotly docker
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
cron \
gdebi-core \
libcurl4-openssl-dev \
libfreetype6-dev \
libpq-dev \
libssl-dev \
libxml2-dev \
openjdk-8-jdk \
r-base \
wget
RUN ln -s /usr/lib/jvm/java-8-openjdk-amd64 /usr/lib/jvm/default-java && R CMD javareconf
RUN wget --no-verbose https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.5.1.834-amd64.deb && \
gdebi -n shiny-server-1.5.1.834-amd64.deb && \
sed -i '1 a sanitize_errors off;' /etc/shiny-server/shiny-server.conf
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
RUN R -e "install.packages(c(\
'cluster',\
'config',\
'devtools',\
'DT',\
'forecast',\
'gtools',\
'lubridate',\
'parallel',\
'plotly',\
'RJDBC',\
'RPostgreSQL',\
'shiny',\
'showtext',\
'slackr',\
'tidyverse',\
'trend',\
'zoo'\
), repos='https://cran.rstudio.com/')"
RUN R -e "devtools::install_github('hadley/multidplyr')"
EXPOSE 3838
CMD ["shiny-server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment