-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
100 lines (79 loc) · 1.7 KB
/
Dockerfile
File metadata and controls
100 lines (79 loc) · 1.7 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Date 2026-02-21
# Notes:
# - Necessary to list all libraries
# - Use shiny image smaller
# Base image https://hub.docker.com/u/rocker/
FROM rocker/shiny:4.4
# Install system dependencies
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 \
build-essential \
libglpk40 \
wget \
unzip \
zlib1g-dev \
bzip2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY shiny-customized.config /etc/shiny-server/shiny-server.conf
ENV _R_SHLIB_STRIP_=true
COPY Rprofile.site /etc/R
# Install the R library
RUN install2.r --error --skipinstalled \
config \
dplyr \
DT \
forcats \
ggplot2 \
glue \
golem \
markdown \
pins \
pkgload \
purrr \
qs2 \
rio \
shiny \
shinycssloaders \
shinydisconnect \
shinylogs \
shinyvalidate \
shinyWidgets \
stringr \
tidyr \
yaml
# Package for installing other packages
RUN install2.r --error --skipinstalled \
BiocManager \
remotes
# Bioconductor and older versions
RUN R -e "BiocManager::install('Biostrings',ask=F)"
RUN R -e "remotes::install_version('blaster', version ='1.0.7')"
# Needed
RUN apt-get update && \
apt-get install -y --no-install-recommends xdg-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# copy necessary files
WORKDIR /srv/shiny-server
COPY DESCRIPTION ./
COPY NAMESPACE ./
COPY .Rbuildignore ./
COPY README.md ./
COPY *.R ./
COPY /R ./R
COPY /inst ./inst
# For testing
# CMD Rscript R/test.R
# expose port
EXPOSE 8080
USER shiny
# Better to use
CMD ["/usr/bin/shiny-server"]