| FROM rocker/shiny-verse:latest | |
| WORKDIR /code | |
| # Install system dependencies for mapgl/sf | |
| RUN apt-get update && apt-get install -y \ | |
| libudunits2-dev \ | |
| libgdal-dev \ | |
| libgeos-dev \ | |
| libproj-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install R packages | |
| # listed explicitly to ensure all dependencies are met | |
| RUN install2.r --error \ | |
| shiny \ | |
| bslib \ | |
| bsicons \ | |
| mapgl \ | |
| sf \ | |
| dplyr \ | |
| readr \ | |
| DT \ | |
| plotly \ | |
| ggplot2 \ | |
| shinyjs \ | |
| later \ | |
| htmltools \ | |
| rvest \ | |
| stringr \ | |
| lubridate \ | |
| purrr \ | |
| jsonlite \ | |
| curl \ | |
| httr \ | |
| writexl | |
| COPY . . | |
| CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"] | |