forked from dieterich-lab/circtools
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
92 lines (82 loc) · 2.42 KB
/
Dockerfile
File metadata and controls
92 lines (82 loc) · 2.42 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
FROM ubuntu:24.04
LABEL stage=builder
LABEL maintainer="tjakobi@arizona.edu"
ARG MAKEFLAGS="-j4"
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Phoenix
ENV PATH="/circtools/bin:$PATH"
# set standard shell to bash for source to work
SHELL ["/bin/bash", "-c"]
RUN apt-get update && \
apt-get install --no-install-recommends -y \
wget \
git \
gpg \
ca-certificates \
make \
bzip2 \
rsync \
g++ \
gfortran \
r-base \
pandoc \
python3 \
python3-dev \
python3-pip \
python3-venv \
libpng-dev \
zlib1g-dev \
libbz2-dev \
libjpeg-turbo8-dev \
libopenblas-dev \
libcurl4-openssl-dev \
libxml2-dev \
libblas-dev \
liblzma-dev \
libgit2-dev \
libfontconfig1-dev \
liblapack-dev \
libssl-dev \
libharfbuzz-dev \
uuid-dev \
libmariadb-dev-compat libfribidi-dev \
libfreetype6-dev \
libtiff5-dev \
libncurses-dev \
libjpeg-dev \
libgmp-dev \
libmpfr-dev \
libnlopt-dev \
nano \
curl && \
useradd -ms /bin/bash circtools && \
mkdir -p /root/.R && \
mkdir /build/
COPY Makevars /root/.R/Makevars
ADD . /build/circtools/
RUN python3 -m venv /circtools && \
. /circtools/bin/activate && \
pip install --upgrade pip setuptools wheel && \
pip install psutil && \
pip install /build/circtools/ --verbose && \
pip cache purge && \
Rscript /build/circtools/circtools/scripts/install_R_dependencies.R /build/circtools/ \
RUN cd /build && \
wget https://github.com/arq5x/bedtools2/releases/download/v2.31.1/bedtools-2.31.1.tar.gz && \
tar zxvf bedtools-2.31.1.tar.gz && \
cd bedtools2 && make -j4 && cp bin/* /usr/local/bin/ && \
cd /build && \
git clone --depth=1 https://github.com/icebert/pblat.git && \
cd pblat && make && cp pblat /usr/local/bin/ && \
cd /build && \
wget https://github.com/samtools/samtools/releases/download/1.21/samtools-1.21.tar.bz2 && \
tar xvf samtools-1.21.tar.bz2 && \
cd samtools-1.21 && make && make install && \
apt-get purge python3-dev -y && \
apt-get autoremove -y && \
apt-get autoclean -y && \
rm -rf /build/ /var/lib/apt/lists/*
ADD docker_path_wrapper.py /usr/local/bin/
RUN chmod +x /usr/local/bin/docker_path_wrapper.py && mkdir /host_os/ && mkdir /host_rel/
LABEL org.opencontainers.image.description="Official circtools Docker image"
ENTRYPOINT ["docker_path_wrapper.py"]