-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
76 lines (54 loc) · 1.72 KB
/
Dockerfile
File metadata and controls
76 lines (54 loc) · 1.72 KB
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
65
66
67
68
69
70
71
72
73
74
#FROM rocker/rstudio:4.0.3
FROM rocker/shiny:4.0.3
## update system libraries
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean
RUN apt-get update -qq
RUN apt-get -y --no-install-recommends install libglu1-mesa-dev
RUN apt-get update && apt-get install libcurl4-openssl-dev -y &&\
mkdir -p /var/lib/shiny-server/bookmarks/shiny
#RUN apt-get install -y software-properties-common
#RUN add-apt-repository -y ppa:cran/poppler \
# apt-get update
RUN apt-get install -y --no-install-recommends \
libapparmor-dev \
libblas-dev \
libbz2-dev \
libcairo2-dev \
libjpeg-dev \
liblapack-dev \
liblzma-dev \
libncurses5-dev \
libpango1.0-dev \
libpcre3-dev \
libpng-dev \
libpoppler-cpp-dev \
libreadline-dev \
libssl-dev \
libtiff5-dev \
libx11-dev \
libxt-dev \
mpack \
x11proto-core-dev \
xauth \
xdg-utils \
xfonts-base \
xvfb \
zlib1g-dev
#renv lock is slow, do this here to take advantage of cache
## renv.lock file
#COPY ./FrontEnd/renv.lock ./renv.lock
# install renv & restore packages
#RUN Rscript -e 'install.packages("renv")'
#RUN Rscript -e 'renv::consent(provided = T); renv::restore(packages = c("DT","configr", #"dplyr", "readtext", "renv", "shiny", "shinyalert", "shinydashboard", "shinyjs"))'
RUN Rscript -e 'install.packages(c("readtext","DT","shinyjs","configr","shinyalert","zip", "shinydashboard","shinyjs", "dplyr","tools"))'
#COPY ./Database /srv/shiny-server/Database
#for consistency
COPY ./motionDB.csv /srv/
COPY ./FrontEnd /srv/shiny-server/
RUN chmod -R 755 /srv/shiny-server/
# expose port
#EXPOSE 3838
# run app on container start
CMD ["R", "-e", "shiny::runApp('./srv/shiny-server', host = '0.0.0.0', port = 3838)"]