misantamaria commited on
Commit
3fd5818
1 Parent(s): 2e61435

ENV APP='app'

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -62,9 +62,11 @@ RUN echo "--> Go!"
62
  ARG RSTUDIO_PORT
63
  ENV RSTUDIO_PORT=$RSTUDIO_PORT
64
  ENV APPDIR='/home/${USER_NAME}/app'
 
65
 
66
- RUN ls -la /home/${USER_NAME}/app
67
 
68
  #CMD [ "R", "-e", "shiny::runApp(host='0.0.0.0'", "port="${RSTUDIO_PORT}, "appDir = '/home/${USER_NAME}/app')" ]
69
- CMD [ "R -e shiny::runApp(host='0.0.0.0', port=Sys.getenv('RSTUDIO_PORT'), appDir = Sys.getenv('APPDIR'))" ]
70
- #CMD R -e "shiny::runApp(host='0.0.0.0', port=as.numeric(Sys.getenv('RSTUDIO_PORT')), appDir = Sys.getenv('APPDIR'))"
 
 
62
  ARG RSTUDIO_PORT
63
  ENV RSTUDIO_PORT=$RSTUDIO_PORT
64
  ENV APPDIR='/home/${USER_NAME}/app'
65
+ ENV APP="app"
66
 
67
+ RUN ls -la ${APPDIR}
68
 
69
  #CMD [ "R", "-e", "shiny::runApp(host='0.0.0.0'", "port="${RSTUDIO_PORT}, "appDir = '/home/${USER_NAME}/app')" ]
70
+ #CMD [ "R -e shiny::runApp(host='0.0.0.0', port=Sys.getenv('RSTUDIO_PORT'), appDir = Sys.getenv('APPDIR'))" ]
71
+ #CMD R -e "shiny::runApp(host='0.0.0.0', port=as.numeric(Sys.getenv('RSTUDIO_PORT')), appDir = Sys.getenv('APPDIR'))"
72
+ CMD ["R", "--quiet", "-e", "shiny::runApp(Sys.getenv('APP'), host='0.0.0.0', port=7860)"]