2.1 Version-stable deployments
When deploying R applications (e.g. a Shiny app) using Docker containers, it is important to control versioning of R and packages for the sake of reproducibilty and stability of the deployments. For this reason, version-stable images are provided as part of the Rocker project and used as a basis for deploying productive applications.
Each version-stable Rocker image has an associated tag for all non-latest R
rocker/r-ver:3.6.1). Besides being specific to the
corresponding version of R, each tag fixes the version of contributed packages
(by using as package repository the MRAN snapshot of the last day CRAN
distributed that R version as latest release). See
Dockerfile of a deployed application then defines a given version-stable
image tag to start
See SmaRP/Dockerfile for an example.