-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
49 lines (42 loc) · 946 Bytes
/
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
FROM phusion/baseimage:jammy-1.0.1
ARG HTSLIB_VERSION=1.17
ENV TERM=xterm-256color \
HTSLIB_URL=https://github.com/samtools/htslib/releases/download/${HTSLIB_VERSION}/htslib-${HTSLIB_VERSION}.tar.bz2
COPY . minimap2_index_modifier
# install deps and cleanup apt garbage
RUN set -eux; \
apt-get update; \
apt-get install -y \
wget \
make \
autoconf \
gcc \
libcurl4-openssl-dev \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
bzip2 \
&& rm -rf /var/lib/apt/lists/*;
#install htslib
RUN set -eux; \
mkdir temp; \
cd temp; \
\
wget ${HTSLIB_URL}; \
tar -xf htslib-${HTSLIB_VERSION}.tar.bz2; \
cd htslib-${HTSLIB_VERSION}; \
\
autoreconf -i; \
./configure; \
make; \
make install; \
cd ../../; \
rm -rf temp;
#install minimap2_index_modifier
RUN set -eux; \
cd minimap2_index_modifier; \
make; \
cp minimap2 /usr/local/bin; \
cd ../; \
rm -rf minimap2_index_modifier;
ENV LD_LIBRARY_PATH=/usr/local/lib