Skip to content

Commit

Permalink
Merge pull request #2 from alexsla/master
Browse files Browse the repository at this point in the history
add docker file
  • Loading branch information
alexsla authored Dec 18, 2023
2 parents edc9acd + 6760632 commit a6d1b71
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM rocker/shiny:4.1.2
LABEL Maintainer="[email protected]"

# install goespatial libraries
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libgdal-dev \
libgeos-dev \
libgeotiff-dev \
libjpeg-dev \
libicu-dev \
libproj-dev \
libudunits2-dev \
libhdf5-dev \
libnetcdf-dev \
netcdf-bin

## update system libraries
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean

# install R packages
COPY renv.lock .
## install renv & restore packages
RUN Rscript -e 'install.packages("renv")'
RUN Rscript -e 'renv::consent(provided = TRUE)'
RUN Rscript -e 'renv::restore()'

# expose port
EXPOSE 3838

# run app on container start
#CMD ["R", "-e", "shiny::runApp('/srv/shiny-server', host = '0.0.0.0', port = 3838)"]

0 comments on commit a6d1b71

Please sign in to comment.