-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (36 loc) · 1014 Bytes
/
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
FROM rocker/shiny:latest
# system dependencies
RUN apt-get update && apt-get install -y \
sudo \
libcurl4-gnutls-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
pandoc \
pandoc-citeproc \
libcairo2-dev \
texlive-latex-base \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra \
libgdal-dev\
libudunits2-dev\
libhdf5-dev \
patch
# install R packages
RUN R -e "install.packages('devtools')"
ARG DISAGAPP_VER=unknown
RUN R -e "devtools::install_github('simon-smart88/disagapp')"
# copy app files
COPY ./inst/shiny/ /srv/shiny-server/disagapp
# select port
EXPOSE 3838
# allow permission
RUN sudo chown -R shiny:shiny /srv/shiny-server
# Add configuration to enable log preservation
RUN echo 'preserve_logs true;' >> /etc/shiny-server/shiny-server.conf
COPY .Renviron /srv/shiny-server/disagapp/.Renviron
USER shiny
# run app
CMD ["/usr/bin/shiny-server"]
#docker build --build-arg DISAGAPP_VER=20240524 -t simon/disagapp .