-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (58 loc) · 1.07 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
65
66
67
FROM rocker/shiny:4.4.2
RUN apt-get update && apt-get install -y \
--no-install-recommends \
git-core \
libssl-dev \
libcurl4-gnutls-dev \
curl \
libsodium-dev \
libxml2-dev \
libicu-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV _R_SHLIB_STRIP_=true
ENV SHINY_LOG_STDERR=1
RUN install2.r --error --skipinstalled \
shiny \
shinyjs \
shinyWidgets \
jsonlite \
ggplot2 \
htmltools \
drc \
DT \
httr \
agricolae \
broom \
readxl \
openxlsx \
purrr \
png \
RColorBrewer \
remotes \
xml2 \
xlsx \
openssl \
ggpmisc \
jose \
R6 \
cowplot \
car \
equatiomatic \
quarto
USER shiny
COPY ./bs/R ./myapp
# is not needed anymore
RUN mkdir /home/shiny/results
COPY ./MTT/ /home/MTT
COPY ./comeln/ /home/comeln
COPY ./bs/ /home/bs
USER root
RUN bash -c "cd /home/MTT; R CMD INSTALL ."
RUN bash -c "cd /home/comeln; R CMD INSTALL ."
RUN bash -c "cd /home/bs; R CMD INSTALL ."
EXPOSE 4001
COPY ./Start_Server_App.R /srv/shiny-server/app.R
COPY ./run.sh .
ENV SHINY_LOG_STDERR=1
CMD ["/bin/bash", "-c", "./run.sh"]