# Get standard R container. FROM rocker/r-ver # Basic packages for shiny functionality RUN R -q -e "install.packages(c('shiny', 'rmarkdown'))" # Copy the app to the image WORKDIR /shinyapp COPY --link app.R /shinyapp/app.R # Copy R profile for configuring port COPY --link Rprofile.site /usr/local/lib/R/etc/ # Expose port of the Space EXPOSE 7860 CMD ["R", "-q", "-e", "shiny::runApp('/shinyapp')"]