misantamaria commited on
Commit
4d4f82a
·
1 Parent(s): 95a3bb9

cmd command string checked. RSTUDIO_PORT as arg & env

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -59,4 +59,6 @@ RUN echo "--> Go!"
59
 
60
  #CMD [ "/init" ]
61
  #CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
62
- CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=${RSTUDIO_PORT}, appDir = '/home/${USER_NAME}/app')"]
 
 
 
59
 
60
  #CMD [ "/init" ]
61
  #CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
62
+ ARG RSTUDIO_PORT
63
+ ENV RSTUDIO_PORT=$RSTUDIO_PORT
64
+ CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0'", "port="${RSTUDIO_PORT}, "appDir = '/home/${USER_NAME}/app')"]