Shinyproxy on Raspbian PI

Is there any docker file available to run shinyproxy on raspberry pi? A example of how to make this work will be helpful.

Hi @Mayank_Koul,

here is an example Dockerfile that worked for me on a raspberry pi zero w:

FROM balenalib/raspberry-pi

RUN apt-get update && apt-get upgrade && apt-get install -y r-base r-base-dev --no-install-recommends
RUN apt-get install -y r-cran-shiny

RUN curl -o httpuv.tar.gz https://cran.r-project.org/src/contrib/Archive/httpuv/httpuv_1.3.5.tar.gz && R CMD INSTALL httpuv.tar.gz
RUN curl -o shiny.tar.gz https://codeload.github.com/rstudio/shiny/tar.gz/v1.0.5 && R CMD INSTALL shiny.tar.gz

EXPOSE 3838

CMD ["R", "-e", "shiny::runExample('01_hello', port = 3838, host = '0.0.0.0')"]

Since this was some time ago, the debian release was stretch, and the R and shiny versions in the debian repo were pretty old, hence the extra steps.

With the current image (based on buster), it should be enough to just run:

FROM balenalib/raspberry-pi

RUN apt-get update && apt-get upgrade && apt-get install -y r-base r-base-dev --no-install-recommends
RUN apt-get install -y r-cran-shiny

EXPOSE 3838

CMD ["R", "-e", "shiny::runExample('01_hello', port = 3838, host = '0.0.0.0')"]