I am trying to build a dockerfile for a Euler App to test ShinyProxy via "http://www.shinyproxy.io/deploying-apps/"
I am using the dockerfile from that link.
Upon using the command
sudo docker build -t openanalytics/shinyproxy-template .
Error: unexpected end of input
The command '/bin/sh -c R -e "install.packages(c('shiny', 'rmarkdown', repos='https://cloud.r-project.org/')" ' returned a non-zero code: 1.
Look closely at the syntax of the R install library line and you will see its missing a closing parenthesis
I just manually fixed that syntax and it correctly builds that step
RUN R -e "install.packages(c('shiny', 'rmarkdown', repos='https://cloud.r-project.org/'))"
build it as
docker build --tag r_base .
NOTE - as docker build progresses it then fails later attempting to
COPY euler /root/euler lstat euler: no such file or directory
To troubleshot this just comment out all Dockefile lines from offending onward and replace bottom line with
then it will build correctly and allow you to login to running container to further troubleshoot
docker run -ti r_base bash
I know nothing of R so will leave it to the reader to fix euler install
cd / find . | grep Rprofile.site ./usr/lib/R/etc/Rprofile.site
That looks good so leave commented out its COPY in Dockerfile