-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.multi
More file actions
31 lines (28 loc) · 808 Bytes
/
Copy pathDockerfile.multi
File metadata and controls
31 lines (28 loc) · 808 Bytes
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
FROM ubuntu:20.04 as builder
ARG VERSION
ENV BWA_URL=https://github.com/lh3/bwa/releases/download/v$VERSION/bwa-$VERSION.tar.bz2
RUN apt-get update \
&& apt-get install -y \
bzip2 \
gcc \
libbz2-dev \
liblzma-dev \
libncurses5-dev \
make \
wget \
zlib1g-dev \
&& wget -O bwa.tar.bz2 $BWA_URL \
&& tar xf bwa.tar.bz2 \
&& cd bwa-$VERSION \
&& make -j $(nproc) \
&& mv bwa /usr/local/bin/
COPY --from=ghcr.io/martinluttap/samtools:1.8 /samtools-1.8.tar.bz2 /
RUN cd / \
&& tar xf samtools-1.8.tar.bz2 \
&& cd samtools-1.8 \
&& ./configure --prefix=/usr/local \
&& make -j $(nproc) \
&& make install -j $(nproc) \
&& cd ../ \
&& rm -rf samtools-1.8 \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*