-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (42 loc) · 982 Bytes
/
Dockerfile
File metadata and controls
58 lines (42 loc) · 982 Bytes
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
# Date 2026-02-21
# Base image https://hub.docker.com/u/rocker/
FROM rocker/shiny:4.4
# install directly the packages
RUN install2.r --error --skipinstalled \
shiny \
shinyFeedback \
shinycssloaders \
markdown \
dplyr \
stringr \
forcats \
here \
rio \
qs2 \
patchwork \
BiocManager \
pryr
RUN R -e "BiocManager::install('Biostrings',ask=F)"
RUN install2.r --error --skipinstalled \
tidyr \
DT
# For testing
# CMD Rscript R/test.R
COPY shiny-customized.config /etc/shiny-server/shiny-server.conf
WORKDIR /srv/shiny-server
# copy necessary files
COPY *.md ./
COPY *.R ./
COPY /www ./www
COPY /data ./data
COPY /inst ./inst
COPY /R ./R
# expose port
EXPOSE 8080
USER shiny
# avoid s6 initialization
# see https://github.com/rocker-org/shiny/issues/79
# The next line prevents the application to start on Google
# CMD ["R", "-e", "shiny::runApp(port = 8080)"]
# Better to use
CMD ["/usr/bin/shiny-server"]