shiny-numerati / Dockerfile
jofaichow's picture
trying to fix dependencies
2fb41dc
raw
history blame
1.57 kB
FROM rocker/r-ver:4.2.3
# Remotes
RUN R -q -e "install.packages(c('remotes'))"
# RUN R -q -e "install.packages(c('devtools'))"
RUN R -q -e "remotes::install_version('devtools', version = '2.4.5', repos = 'http://cran.us.r-project.org')"
# Specific version of other Packages
# Specific version of other Packages
RUN R -q -e "remotes::install_version('farver', version = '2.1.1', repos = 'http://cran.us.r-project.org')"
# RUN R -q -e "remotes::install_github('r-lib/later')"
#RUN R -q -e "remotes::install_version('httpuv', version = '1.6.6', repos = 'http://cran.us.r-project.org')"
# RUN R -q -e "devtools::install_github('rstudio/httpuv')"
# Specific version of Shiny
# RUN R -q -e "remotes::install_version('shiny', version = '1.7.3', repos = 'http://cran.us.r-project.org')"
# basic shiny functionality
RUN R -q -e "install.packages(c('rmarkdown', 'markdown'))"
# additional shiny functionality
RUN R -q -e "install.packages(c('shinydashboard', 'shinydashboardPlus'))"
RUN R -q -e "install.packages(c('shinyWidgets', 'shinycssloaders'))"
# other R packages
RUN R -q -e "install.packages(c('DT', 'plotly', 'scico', 'ggthemes', 'scales', 'wesanderson'))"
RUN R -q -e "install.packages(c('data.table', 'dtplyr', 'googlesheets4'))"
# modified version of Rnumerai
# RUN R -q -e "devtools::install_github('woobe/Rnumerai')"
RUN R -q -e "remotes::install_github('woobe/Rnumerai')"
# copy the app to the image
WORKDIR /shinyapp
COPY --link Rprofile.site /usr/local/lib/R/etc/
COPY --link app /shinyapp/
EXPOSE 7860
CMD ["R", "-q", "-e", "shiny::runApp('/shinyapp')"]