FROM rocker/shiny-verse:4.3.1 RUN apt-get update && apt-get install -y libbz2-dev # Workaround for renv cache RUN mkdir /.cache RUN chmod 777 /.cache WORKDIR /code RUN install2.r --error \ BiocManager CMD ["R", "--quiet", "-e", "BiocManager::install("cBioPortalData")"] RUN install2.r --error \ shiny \ DT \ rhino \ data.table \ gargoyle \ thematic \ shinyWidgets \ stats \ plotly \ shinyjs # Install development packages from GitHub RUN installGithub.r \ rstudio/bslib \ rstudio/httpuv \ RinteRface/bs4Dash \ vojtam/g3viz COPY . . # Copy application code COPY . . # Install dependencies #RUN Rscript -e 'options(renv.config.cache.enabled = FALSE); renv::restore(prompt = FALSE)' CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]