WLenhard commited on
Commit
3267b56
·
verified ·
1 Parent(s): 81d7738

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -9,5 +9,6 @@ COPY app.R /app/
9
  # Expose port
10
  EXPOSE 7860
11
 
12
- # Start the API
13
- CMD ["R", "-e", "pr <- plumber::plumb('app.R'); pr$run(host='0.0.0.0', port=7860)"]
 
 
9
  # Expose port
10
  EXPOSE 7860
11
 
12
+ # Override entrypoint to set custom port
13
+ ENTRYPOINT ["R", "-e"]
14
+ CMD ["pr <- plumber::plumb('/app/app.R'); pr$run(host='0.0.0.0', port=7860)"]