I’m having an issue when launching my application.
I’m trying to debug manually.
When I run
sudo docker run -p 3838:3838 tonyk7440/shiny_save
I get the error
shiny::runApp(’/root/shiny_save’,
+
+Error: unexpected end of input
I have
CMD ["R", "-e shiny::runApp('/root/shiny_save', host='0.0.0.0', port=3838)"]
at the end of my dockerfile.
But when I run:
sudo docker run -p 3838:3838 tonyk7440/shiny_save R -e "shiny::runApp('/root/shiny_save', host='0.0.0.0', port = 3838)"
It runs perfect, the reason why I’m forcing the port in dockerfile is because it seems it to launch on random ports if not.
Link to application: https://github.com/tonyk7440/shiny_save
Link to dockerfile: https://github.com/tonyk7440/shiny_save/blob/master/Dockerfile