Spaces:
Running
Running
| FROM rocker/shiny-verse:latest | |
| WORKDIR /code | |
| # Install stable packages from CRAN | |
| RUN install2.r --error \ | |
| shiny \ | |
| shinyalert \ | |
| shinythemes \ | |
| shinycssloaders \ | |
| shinyWidgets \ | |
| spsComps \ | |
| bslib \ | |
| reactable \ | |
| reactablefmtr \ | |
| data.table \ | |
| dplyr \ | |
| openalexR | |
| # Install development packages from GitHub | |
| RUN installGithub.r \ | |
| rstudio/bslib \ | |
| rstudio/httpuv | |
| RUN mkdir -p /code/app_cache && chmod -R 777 /code/app_cache | |
| RUN mkdir -p /.cache && chmod -R 777 /.cache | |
| ENV R_USER_CACHE_DIR=/code/app_cache | |
| ENV SASS_CACHE_DIR=/code/app_cache | |
| ENV XDG_CACHE_HOME=/code/app_cache | |
| ENV RSTUDIO_CONFIG_HOME=/code/app_cache | |
| COPY . . | |
| CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"] | |