Sample Deployment of a R Machine-Learning Model using Docker
To start the training run:
Rscript src/train.R
docker build -t r-shiny-docker-sample .
Use this command to run the dockerfile in the background
docker run --rm -p 8000:8000 --name r-shiny r-shiny-docker-sample
To stop the server, use this command
docker stop r-shiny
To view logs of the container run
docker logs r-shiny