-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
45 lines (32 loc) · 1.31 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
FROM mirror.gcr.io/library/ubuntu:20.04
MAINTAINER https://github.com/jonassibbesen
WORKDIR /home
### Install essential tools (including protobuf and jansson)
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wget git autoconf automake make cmake gcc g++ pkg-config protobuf-compiler libprotoc-dev libprotobuf-dev libjansson-dev && \
rm -rf /var/lib/apt/lists/*
### Install htslib
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends perl zlib1g-dev libbz2-dev liblzma-dev libssl-dev && \
rm -rf /var/lib/apt/lists/*
RUN wget --no-check-certificate https://github.com/samtools/htslib/releases/download/1.16/htslib-1.16.tar.bz2 && \
tar -xvjf htslib-1.16.tar.bz2 && \
cd htslib-1.16 && \
./configure --disable-s3 --disable-gcs --disable-libcurl --disable-plugins && \
make install && \
cd .. && \
rm -r *
### Get rpvg
RUN GIT_SSL_NO_VERIFY=true git clone --recursive https://github.com/jonassibbesen/rpvg.git
### Set target CPU architecture
RUN cd rpvg && \
sed -i 's/march=native/march=nehalem/g' CMakeLists.txt deps/sdsl-lite/CMakeLists.txt
### Compile rpvg
RUN cd rpvg && \
mkdir build && \
cd build && \
cmake -DBUILD_STATIC=1 .. && \
make && \
cd ../../ && \
mv rpvg/bin/rpvg /usr/bin/ && \
rm -r *