forked from BDSI-Utwente/shinyapps-deploy-github-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
18 lines (15 loc) · 762 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# start from shiny-verse to include both the shiny and tidyverse packages,
# saving us time assuming that the app to be deployed doesn't have dependencies
# locked to different versions.
FROM rocker/shiny-verse:4.3.2
# install rsconnect and renv packages, as well as prerequisite libraries
RUN apt-get update && apt-get install -y \
libssl-dev \
libcurl4-openssl-dev
RUN install2.r rsconnect renv DT RecordLinkage plotly shinydashboard shinyjs
# copy deploy script to root of the workspace
COPY deploy.R /deploy.R
# run deploy script, ignoring any .Rprofile files to avoid issues with conflicting
# library paths.
# TODO: this may cause issues if the .Rprofile does any setup required for the app to run
CMD ["Rscript", "--no-init-file", "/deploy.R"]