FROM openanalytics/r-ver:4.1.3 # system libraries of general use RUN apt-get update && apt-get install --no-install-recommends -y \ pandoc \ pandoc-citeproc \ libcurl4-gnutls-dev \ libcairo2-dev \ libxt-dev \ libssl-dev \ libssh2-1-dev \ libssl1.1 \ libmpfr-dev \ && rm -rf /var/lib/apt/lists/* # basic shiny functionality RUN R -q -e "install.packages(c('shiny', 'rmarkdown'))" # copy the app to the image WORKDIR /shinyapp COPY --link Rprofile.site /usr/local/lib/R/etc/ COPY --link app.R /shinyapp/app.R EXPOSE 7860 CMD ["R", "-q", "-e", "shiny::runApp('/shinyapp')"]