-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
85 lines (77 loc) · 1.97 KB
/
Copy pathDockerfile
File metadata and controls
85 lines (77 loc) · 1.97 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
FROM nciccbr/ccbr_ubuntu_base_20.04:v7
# build time variables
ARG BUILD_DATE="000000"
ENV BUILD_DATE=${BUILD_DATE}
ARG BUILD_TAG="000000"
ENV BUILD_TAG=${BUILD_TAG}
ARG REPONAME="000000"
ENV REPONAME=${REPONAME}
ARG R_VERSION=4.3.2
ENV R_VERSION=${R_VERSION}
SHELL ["/bin/bash", "-lc"]
# install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libcairo2-dev \
libcurl4-openssl-dev \
libfontconfig1-dev \
libfreetype6-dev \
libfribidi-dev \
libharfbuzz-dev \
libhdf5-dev \
libssl-dev \
libsz2 \
libxml2-dev \
pkg-config
# install conda packages
RUN mamba install -y -c conda-forge -c bioconda \
cmake \
hdf5 \
r-base=${R_VERSION} \
r-devtools \
bioconductor-annotationdbi \
bioconductor-aucell \
bioconductor-celldex \
bioconductor-dropletutils \
bioconductor-gseabase \
bioconductor-ontoProc \
bioconductor-org.hs.eg.db \
bioconductor-org.mm.eg.db \
bioconductor-orthology.eg.db \
bioconductor-scdblfinder \
bioconductor-singlecellexperiment \
bioconductor-singleR \
r-cffr \
r-clustersim \
r-dplyr \
r-ggplot2 \
r-ggpubr \
r-ggrepel \
r-goodpractice \
r-harmony \
r-knitr \
r-lintr \
r-magrittr \
r-rcmdcheck \
r-reshape2 \
r-rlang \
r-rmarkdown \
r-roxygen2 \
r-r.utils \
r-seurat \
r-seuratobject \
r-testthat \
r-usethis \
&& conda clean -afy
# install R package
COPY . /opt2/SCOT
RUN R -e "devtools::install_local('/opt2/SCOT', dependencies = TRUE, repos='http://cran.rstudio.com')" && \
R -e "library(SCOT)" && \
R -s -e "readr::write_csv(tibble::as_tibble(installed.packages()), '/mnt/r-packages.csv')"
# Save Dockerfile in the docker
COPY Dockerfile /opt2/Dockerfile_${REPONAME}.${BUILD_TAG}
RUN chmod a+r /opt2/Dockerfile_${REPONAME}.${BUILD_TAG}
# cleanup
WORKDIR /data2
RUN apt-get clean && apt-get purge \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*