cjerzak commited on
Commit
fa91f2a
·
verified ·
1 Parent(s): cf7d3a3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -71,4 +71,4 @@ COPY . /app
71
 
72
  EXPOSE 7860
73
 
74
- CMD ["Rscript", "-e", "pr <- plumber::plumb('/app/plumber.R'); pr$run(host='0.0.0.0', port=as.integer(Sys.getenv('PORT', '7860')))" ]
 
71
 
72
  EXPOSE 7860
73
 
74
+ CMD ["Rscript", "-e", "if (dir.exists('/app')) setwd('/app'); pr <- plumber::plumb('/app/plumber.R'); pr$run(host='0.0.0.0', port=as.integer(Sys.getenv('PORT', '7860')))" ]