Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Update Dockerfile to use samtools zlibng image
Browse files Browse the repository at this point in the history
- Add bwa-mem2
- #325
  • Loading branch information
cflerin committed May 27, 2021
1 parent 8b7c04f commit 5d4c4f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 73 deletions.
46 changes: 5 additions & 41 deletions src/bwamaptools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,38 +1,6 @@
FROM debian:buster-slim
FROM vibsinglecellnf/samtools:1.12

ENV DEBIAN_FRONTEND=noninteractive
RUN BUILDPKGS="build-essential \
autoconf cmake git \
automake make gcc perl bedtools \
libbz2-dev \
libcurl4-openssl-dev \
libssl-dev \
zlib1g-dev \
liblzma-dev \
curl \
libncurses5-dev"&& \
apt-get update && \
apt-get install -y --no-install-recommends apt-utils debconf locales && dpkg-reconfigure locales && \
apt-get install -y --reinstall ca-certificates && \
apt-get install -y --no-install-recommends $BUILDPKGS

# Install htslib
RUN git clone --recurse-submodules https://github.com/samtools/htslib.git && \
cd htslib && \
autoheader && \
autoconf && \
./configure --prefix=/usr/local/ && \
make && \
make install

# Install SAMtools
RUN git clone https://github.com/samtools/samtools.git && \
cd samtools && \
autoheader && \
autoconf -Wno-syntax && \
./configure --prefix=/usr/local/ && \
make && \
make install

# install bwa
RUN git clone https://github.com/lh3/bwa.git && \
Expand All @@ -41,16 +9,12 @@ RUN git clone https://github.com/lh3/bwa.git && \
mv /bwa/bwa /usr/local/bin/

# install bwa-mem2
ENV BWAMEM2_VER 2.1
ENV BWAMEM2_VER 2.2.1
RUN cd /tmp && \
curl -L https://github.com/bwa-mem2/bwa-mem2/releases/download/v${BWAMEM2_VER}/bwa-mem2-${BWAMEM2_VER}_x64-linux.tar.bz2 | tar jxf - && \
mv bwa-mem2-${BWAMEM2_VER}_x64-linux/bwa-mem2* /usr/local/bin

RUN apt-get -y update && \
apt-get -y --no-install-recommends install \
# Need to run ps
procps \
less && \
rm -rf /var/cache/apt/* && \
rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/cache/apt/* && \
rm -rf /var/lib/apt/lists/* && \
ldconfig

32 changes: 0 additions & 32 deletions src/bwamaptools/Dockerfile.samtools

This file was deleted.

0 comments on commit 5d4c4f6

Please sign in to comment.