|
FROM rocker/r-base:latest |
|
|
|
|
|
WORKDIR /code |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
libcurl4-openssl-dev \ |
|
libssl-dev \ |
|
libxml2-dev \ |
|
libgdal-dev \ |
|
libgeos-dev \ |
|
libproj-dev \ |
|
libnetcdf-dev \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN R -e "install.packages('remotes')" \ |
|
&& R -e "remotes::install_cran('shiny')" \ |
|
&& R -e "remotes::install_cran('dplyr')" \ |
|
&& R -e "remotes::install_cran('sf')" \ |
|
&& R -e "remotes::install_cran('stringr')" \ |
|
&& R -e "remotes::install_cran('leaflet')" |
|
|
|
|
|
COPY . . |
|
|
|
|
|
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"] |
|
|