Skip to content

Commit

Permalink
Adding build files and changing deployment URL's
Browse files Browse the repository at this point in the history
  • Loading branch information
mlacayoemery committed Sep 5, 2023
1 parent bd51879 commit d264337
Show file tree
Hide file tree
Showing 7 changed files with 444 additions and 18 deletions.
32 changes: 32 additions & 0 deletions tools/R/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM rstudio/plumber

RUN apt-get update -qq && apt-get install -y libssl-dev libcurl4-gnutls-dev unixodbc-dev libmysqlclient-dev

RUN R -e "install.packages('Rcpp')"
RUN R -e "install.packages('sf')"
RUN R -e "install.packages('sp')"
RUN R -e "install.packages('raster')"
RUN R -e "install.packages('rgdal')"
RUN R -e "install.packages('ggplot2')"
RUN R -e "install.packages('ggpubr')"
RUN R -e "install.packages('tidyverse')"
RUN R -e "install.packages('tidyr')"
RUN R -e "install.packages('grid')"
RUN R -e "install.packages('jsonlite')"
#RUN R -e "install.packages('geosapi')"
RUN R -e "install.packages('logger')"
RUN R -e "install.packages('devtools')"

RUN R -e "install.packages('remotes')"

RUN apt-get install -y libcurl4-openssl-dev libssl-dev libjq-dev libprotobuf-dev protobuf-compiler make libgeos-dev libudunits2-dev libgdal-dev gdal-bin libproj-dev libv8-dev

RUN apt-get install -y libsecret-1-dev libsodium-dev

WORKDIR /app

COPY . .

EXPOSE 8000

CMD ["/app/calculator.r"]
Loading

0 comments on commit d264337

Please sign in to comment.