Could this create reproducibility issues? e.g. package version mismatch. (Why not add an option to let the users choose to compile or to install binary? - by default, binary)
In the incoming 0.5 release, the cache = TRUE option in render_docker() will use the cached image layers when there are no changes in package dependencies. This makes this issue a much smaller problem.
Compiling and installing source packages in Dockerfile takes considerable amount of time. Install pre-built R Packages will save a lot of time.
Possible approach:
Potential problems: