FROM rocker/r-base:latest WORKDIR /code RUN apt-get update && apt-get install -y \ pandoc \ wget \ && apt-get clean RUN R -e "install.packages('tinytex'); tinytex::install_tinytex()" RUN R -e "tinytex::tlmgr_install(c('amsmath', 'geometry', 'graphicx', 'xcolor', 'fancyhdr', 'sectsty', 'hyperref', 'fontspec'))" RUN install2.r --error \ shiny \ dplyr \ ggplot2 \ readr \ ggExtra \ rmarkdown \ knitr COPY . . CMD ["R", "--quiet", "-e", "shiny::runApp('.', host='0.0.0.0', port=7860)"]