-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (30 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM fredhutch/r-shiny-server-base:4.2.0
RUN apt-get update
RUN apt-get install -y pandoc
# Devtools dependencies
RUN apt-get install -y libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev curl libxml2 libxml2-dev libcurl4-openssl-dev libssl-dev r-cran-openssl libgit2-dev
RUN Rscript -e "install.packages('systemfonts')"
RUN Rscript -e "install.packages('textshaping')"
RUN Rscript -e "install.packages('ragg')"
# Devtools and custom package
RUN Rscript -e "install.packages('devtools', dependencies=T)"
RUN Rscript -e "install.packages(c('shinydashboard', 'yaml'))"
RUN Rscript -e "install.packages('googlesheets4', dependencies=T)"
# RUN Rscript -e "library(devtools);install_github('FredHutch/dmshelper')"
# install dmshelper package
ADD . /src/dmshelper
WORKDIR /src/dmshelper
RUN R CMD INSTALL .
WORKDIR /srv/shiny-server/
RUN rm -rf /src/dmshelper
RUN rm -rf /srv/shiny-server/
RUN mkdir -p /src/shiny-server/
COPY app/start.R /srv/shiny-server/app.R
COPY doc /srv/shiny-server/doc/
COPY template /srv/shiny-server/template/
RUN chown -R shiny:shiny /srv/shiny-server/
EXPOSE 3838
WORKDIR /srv/shiny-server/
ADD .secrets /srv/shiny-server/.secrets
RUN chown -R shiny:shiny .secrets
CMD /usr/bin/shiny-server