File size: 278 Bytes
81d7738
415e936
 
 
 
 
 
 
81d7738
415e936
 
3267b56
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM rstudio/plumber:latest

# Set working directory
WORKDIR /app

# Copy application files
COPY app.R /app/

# Expose port
EXPOSE 7860

# Override entrypoint to set custom port
ENTRYPOINT ["R", "-e"]
CMD ["pr <- plumber::plumb('/app/app.R'); pr$run(host='0.0.0.0', port=7860)"]