-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
88 lines (81 loc) · 1.56 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
FROM rocker/r-ver:4.3
WORKDIR /app
COPY . .
# install system dependencies
RUN apt-get update && \
apt-get -y install \
poppler-utils \
libglu1-mesa* \
locales \
openssl \
curl \
bash-completion \
ca-certificates \
file \
fonts-texgyre \
g++ \
gfortran \
gsfonts \
libblas-dev \
libbz2-* \
libcurl4 \
"libicu[0-9][0-9]" \
liblapack-dev \
libpcre2* \
libjpeg-turbo* \
libpangocairo-* \
libpng16* \
libreadline-dev \
libtiff* \
liblzma* \
make \
tzdata \
unzip \
zip \
zlib1g \
wget
# install R packages
RUN R -e "install.packages(c('remotes', 'BiocManager'))"
RUN R -e "BiocManager::install(c( \
'callr', \
'circlize', \
'cowplot', \
'data.table', \
'export', \
'extrafont', \
'futile.logger', \
'ggplot2', \
'ggprism', \
'glue', \
'gplots', \
'grafify', \
'grid', \
'htmlwidgets', \
'jsonlite', \
'magrittr', \
'openxlsx', \
'optparse', \
'patchwork', \
'plotly', \
'R.utils', \
'randomcoloR', \
'RColorBrewer', \
'readxl', \
'rlang', \
'sessioninfo', \
'stringr', \
'utils', \
'uuid', \
'webshot', \
'xfun', \
'reshape2', \
'pacman' \
))"
# build and install hiplotlib
RUN make build && make install
RUN R -e "library('hiplotlib');deploy()"
RUN chmod 777 /usr/local/lib/R/site-library/hiplotlib/hicli.R /usr/local/lib/R/site-library/hiplotlib/hisub.R
RUN apt autoremove -y && \
apt autoclean -y
RUN rm -rf /var/lib/apt/lists/*
CMD ["R"]