-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathDockerfile
64 lines (55 loc) · 2.04 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM rocker/shiny-verse:3.5.3
LABEL maintainer="Travis Gerke ([email protected])"
# Install system dependencies for required packages
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libssl-dev \
libxml2-dev \
libmagick++-dev \
libv8-3.14-dev \
libglu1-mesa-dev \
freeglut3-dev \
mesa-common-dev \
libudunits2-dev \
libpoppler-cpp-dev \
libwebp-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN install2.r --error \
shinyAce \
shinydashboard \
shinyWidgets \
DiagrammeR \
ggdag \
igraph \
pdftools \
shinyBS \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN Rscript -e "devtools::install_github('metrumresearchgroup/texPreview', ref = 'e954322')" \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
# Install TinyTeX
RUN install2.r --error tinytex \
&& wget -qO- \
"https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" | \
sh -s - --admin --no-path \
&& mv ~/.TinyTeX /opt/TinyTeX \
&& /opt/TinyTeX/bin/*/tlmgr path add \
&& tlmgr install metafont mfware inconsolata tex ae parskip listings \
&& tlmgr install standalone varwidth xcolor colortbl multirow psnfss setspace pgf \
&& tlmgr path add \
&& Rscript -e "tinytex::r_texmf()" \
&& chown -R root:staff /opt/TinyTeX \
&& chmod -R a+w /opt/TinyTeX \
&& chmod -R a+wx /opt/TinyTeX/bin \
&& echo "PATH=${PATH}" >> /usr/local/lib/R/etc/Renviron \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN install2.r --error shinyjs \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN install2.r --error plotly shinycssloaders \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN installGithub.r gadenbuie/shinyThings@4e8becb2972aa2f7f1960da6e5fe6ad39aeceda0 \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
ARG SHINY_APP_IDLE_TIMEOUT=600
RUN sed -i "s/directory_index on;/app_idle_timeout ${SHINY_APP_IDLE_TIMEOUT};/g" /etc/shiny-server/shiny-server.conf
COPY . /srv/shiny-server/shinyDAG
RUN chown -R shiny:shiny /srv/shiny-server/