-
Notifications
You must be signed in to change notification settings - Fork 45
/
Dockerfile
48 lines (40 loc) · 1.01 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
46
47
# Start with an Ubuntu image
FROM ubuntu:20.04
# Avoid prompts with tzdata (timezones)
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies for htslib and svaba
RUN apt update && apt install -y \
autoconf \
automake \
make \
gcc \
g++ \
git \
perl \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
libcurl4-gnutls-dev \
libssl-dev \
cmake \
&& rm -rf /var/lib/apt/lists/*
# Clone and install htslib
WORKDIR /opt
RUN git clone --recursive https://github.com/samtools/htslib.git && \
cd htslib && \
autoheader && \
autoconf && \
./configure && \
make && \
make install
# Ensure shared libraries are noticed
RUN ldconfig
# Clone svaba
WORKDIR /opt
RUN git clone --recursive https://github.com/walaj/svaba.git && cd svaba && mkdir build
# Compile svaba with htslib
WORKDIR /opt/svaba/build
RUN cmake .. \
-DHTSLIB_DIR=/usr/local
# Default command can be your application run command or just an interactive shell for testing
ENV PATH "$PATH:/svaba/build"