-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.v7.2_grouped
84 lines (65 loc) · 2.9 KB
/
Dockerfile.v7.2_grouped
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
FROM r-base:4.3.1
# Set up Debian Bullseye and update
RUN echo 'deb http://deb.debian.org/debian bullseye main' > /etc/apt/sources.list \
&& apt-get update -y \
&& apt-get dist-upgrade -y
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
libxml2-dev python3 python3-pip python3-dev git \
libcairo2-dev libxt-dev xorg openbox software-properties-common \
openssl libcurl4-openssl-dev libssl-dev wget net-tools \
default-jre default-jdk time curl gcc g++ build-essential \
libtool bison flex python3-venv \
libharfbuzz-dev libfribidi-dev libpng-dev libtiff5-dev libjpeg-dev libfreetype6 libfreetype-dev \
libhdf5-dev \
python3-loompy
# Set up Python virtual environment
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
ENV RETICULATE_PYTHON=/usr/bin/python3
# Upgrade pip, setuptools, and wheel
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
# Install cmake via pip if needed
RUN pip install --upgrade cmake==3.14.3
# Verify cmake installation
RUN cmake --version
# Install Python packages with debugging and custom CMake args
RUN python3 -m pip install --break-system-packages leidenalg umap-learn scikit-learn MulticoreTSNE
#install HDF5
COPY lib/hdf5-1.10.6-linux-centos7-x86_64-shared.tar.gz hdf5.tar.gz
RUN tar -zxf hdf5.tar.gz
RUN mv /hdf5-1.10.6-linux-centos7-x86_64-shared /hdf5
ENV LD_LIBRARY_PATH=/hdf5/lib/
ENV PATH=$PATH:/hdf5/bin
RUN cd /hdf5/bin && ./h5redeploy -force && cd / && rm hdf5.tar.gz
#Install R packages
RUN Rscript -e "install.packages(c('BiocManager', 'Matrix', 'reticulate', 'KernSmooth', 'nlme', 'MASS', 'sanon', 'devtools', 'MAST', 'R6', 'bit64', 'Rtsne', 'jsonlite', 'data.table', 'devtools', 'flexmix', 'rPython', 'statmod', 'plotly', 'future.apply', 'Seurat', 'hdf5r', 'SeuratObject'), repos='http://stat.ethz.ch/CRAN/'); \
BiocManager::install(c('multtest', 'sva', 'DESeq2', 'limma', 'cluster', 'Cairo', 'scater', 'SC3', 'XVector', 'scran', 'batchelor', 'LoomExperiment', 'SingleCellExperiment))"
RUN Rscript -e "devtools::install_github(c('grimbough/rhdf5','tallulandrews/M3Drop', 'cellgeni/sceasy'))"
RUN Rscript -e "devtools::install_github(repo = 'mojaveazure/loomR', ref = 'develop')"
# Clear broken packages and resolve dependencies
RUN dpkg --configure -a
RUN apt-get install -f
# Update and upgrade packages
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get -y install python3-anndata
RUN python3 -m pip install --break-system-packages scanpy
ENV USER=rvmuser USER_ID=1006 USER_GID=1006
# now creating user NO NEED IN LAST INSTALL
RUN groupadd --gid "${USER_GID}" "${USER}" && \
useradd \
--uid ${USER_ID} \
--gid ${USER_GID} \
--create-home \
--shell /bin/bash \
${USER}
USER ${USER}
LABEL maintainer="Fabrice P.A. David <[email protected]>"
ARG DUMMY=unknown
RUN DUMMY=${DUMMY}
COPY R /srv
COPY python /srv
COPY java /srv
COPY bin /srv
WORKDIR /srv