These images are a stable and convenient base to package shiny apps, typically with a Dockerfile looking like:
FROM asachet/shiny-base:3.6.1
# Add packages specific to this app
RUN install2.r -s --error \
radarchart \
googlesheets
WORKDIR /usr/local/src/mycoolapp
COPY data/ data/
COPY www/ www/
COPY *.R ./
COPY *.yml ./
EXPOSE 3838
CMD ["r", "-e", "shiny::runApp('.', port=3838, host='0.0.0.0', launch.browser=F)"]
- Built on the most stable R image,
rocker/r-ver
- Contains
shiny
and common packages likeshinydashboard
,shinyWidgets
,shinythemes
,DT
fordataTableOutput
, etc - Contains a minimal
tidyverse
andggplot
-verse - Contains convenience (and IMO best practice) tools like
logging
andconfig
- Built on
shiny-base
for robustness - Adds system libraries and R packages necessary to connect to
MySQL
databases - NOTE: relies on
RMariaDB
instead of the legacyRMySQL
package!
- Built on
rocker-rstudio
rather thanrocker:r-ver
, but using the same version. - Contains shiny-base + shiny-mysql + rstudio + devtools + roxygen2
- Not meant for deployment but useful for development in the same controlled environment using
rstudio
in the browser.
No longer living in this repository as R version tags did not make sense for this image.
- Containerised shinyproxy, suitable to set up a shinyproxy server. Simply add your yml config. See www.shinyproxy.io
- Dockerfile adapted from openalanalytics's shinyproxy-config-examples
- Not a suitable base for shiny apps as it does not contain shiny.
These Dockerfiles are under the MIT license. RStudio and Shiny are trademarks of RStudio, Inc.