Spaces:
Running
Running
Download Dockerfile from climateexploer/meteogate: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/spaces/climateexploer/meteogate/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/climateexploer/meteogate/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/climateexploer/meteogate/resolve/main/Dockerfile
1.22 kB
| FROM rocker/shiny-verse:latest | |
| RUN useradd -m -u 1000 user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| RUN mkdir -p $HOME/app && chown user:user $HOME/app | |
| WORKDIR $HOME/app | |
| # Install system dependencies if needed (shiny-verse covers most) | |
| # libcurl4-gnutls-dev, libssl-dev, libxml2-dev are standard in this image | |
| 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 | |
| # We explicitly list ALL packages from global.R for clarity. | |
| # Note: shiny, dplyr, readr, stringr, purrr, lubridate are already in the base image, | |
| # but listing them ensures they are checked/installed if missing. | |
| RUN install2.r --error \ | |
| shiny \ | |
| bsicons \ | |
| mapgl \ | |
| sf \ | |
| dplyr \ | |
| readr \ | |
| DT \ | |
| plotly \ | |
| lubridate \ | |
| shinycssloaders \ | |
| curl \ | |
| stringr \ | |
| purrr \ | |
| shinyjs \ | |
| jsonlite \ | |
| writexl \ | |
| DBI \ | |
| httr \ | |
| arrow \ | |
| duckdb \ | |
| remotes | |
| RUN installGithub.r \ | |
| rstudio/bslib \ | |
| rstudio/httpuv | |
| COPY --chown=user . $HOME/app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["R", "--quiet", "-e", "shiny::runApp('/home/user/app', host='0.0.0.0', port=7860)"] | |