jofaichow commited on
Commit
cd7dab8
1 Parent(s): 46a60bc
Files changed (2) hide show
  1. Dockerfile +15 -0
  2. Rprofile.site +3 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rocker/r-ver
2
+
3
+ # basic shiny functionality
4
+ RUN R -q -e "install.packages(c('shiny', 'rmarkdown'))"
5
+
6
+ # other R packages
7
+ RUN R -q -e "install.packages(c('data.table', 'Rnumerai'))"
8
+
9
+ # copy the app to the image
10
+ WORKDIR /shinyapp
11
+ COPY --link Rprofile.site /usr/local/lib/R/etc/
12
+ COPY --link app /shinyapp/
13
+
14
+ EXPOSE 7860
15
+ CMD ["R", "-q", "-e", "shiny::runApp('/shinyapp')"]
Rprofile.site ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ local({
2
+ options(shiny.port = 7860, shiny.host = "0.0.0.0")
3
+ })