Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
DeFi_App/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
63 lines (55 sloc)
2.68 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openanalytics/r-base | |
MAINTAINER John Erickson "erickj4@rpi.edu" | |
RUN apt-get remove cmake | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y cmake | |
# system libraries of general use | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
sudo \ | |
# cmake \ | |
libcurl4-gnutls-dev \ | |
libcairo2-dev \ | |
libxt-dev \ | |
libssl-dev \ | |
libssh2-1-dev \ | |
libxml2-dev \ | |
libproj-dev \ | |
libgdal-dev \ | |
libudunits2-dev \ | |
libtiff-dev \ | |
libjpeg-dev \ | |
&& rm -rf /var/lib/apt/lists/* | |
## Regular R packages | |
RUN R -e 'install.packages("ggplot2",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("shiny",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("dplyr",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("survival",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("readr",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("bslib",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("survminer",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("lubridate",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("RColorBrewer",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("shinyBS",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("ggrepel",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("DT",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("pheatmap",repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("sClust", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("gridExtra", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("ppclust", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("reshape2", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("clusterSim", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("factoextra", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("lamW", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("e1071", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("caret", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("shinyjs", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("plotly", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("tibble", repos="https://cloud.r-project.org/")' | |
RUN R -e 'install.packages("heatmaply", repos="https://cloud.r-project.org/")' | |
# copy the app to the image | |
RUN mkdir /root/defitoolkit | |
COPY DeFi_Toolkit /root/defitoolkit | |
COPY Rprofile.site /usr/lib/R/etc/ | |
EXPOSE 3838 | |
CMD ["R", "-e", "shiny::runApp('/root/defitoolkit')"] |