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
shinyand common packages likeshinydashboard,shinyWidgets,shinythemes,DTfordataTableOutput, etc - Contains a minimal
tidyverseandggplot-verse - Contains convenience (and IMO best practice) tools like
loggingandconfig
- Built on
shiny-basefor robustness - Adds system libraries and R packages necessary to connect to
MySQLdatabases - NOTE: relies on
RMariaDBinstead of the legacyRMySQLpackage!
- Built on
rocker-rstudiorather 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
rstudioin 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.