Skip to content

Instantly share code, notes, and snippets.

@asarolia
Created May 21, 2020 10:33
Show Gist options
  • Save asarolia/0b517f2ef081c471b5612363fa124db9 to your computer and use it in GitHub Desktop.
Save asarolia/0b517f2ef081c471b5612363fa124db9 to your computer and use it in GitHub Desktop.
dockerfile
FROM rocker/shiny:3.5.3
RUN R -e "install.packages(c('shiny'), repos='https://cran.rstudio.com/')"
# copy the app to the image
RUN mkdir /root/shinysample
COPY shinysample /root/shinysample
EXPOSE 3838
CMD ["R", "-e", "shiny::runApp('/root/shinysample', host='0.0.0.0', port=3838)"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment