Skip to content

Commit

Permalink
Kvg docker samtools (#32)
Browse files Browse the repository at this point in the history
* Added samtools to the Dockerfile
  • Loading branch information
kvg authored Oct 12, 2024
1 parent 4d15045 commit 052c5f2
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ ARG branch
# Install dependencies
RUN apt-get update --allow-releaseinfo-change && \
apt-get install -y --no-install-recommends \
curl keychain git-lfs time datamash wget bzip2 make gcc cmake g++ build-essential\
zlib1g-dev libssl-dev lbzip2 libbz2-dev libncurses5-dev libstdc++6\
libncursesw5-dev liblzma-dev clang libclang-dev pkg-config \
libtcmalloc-minimal4 python3-dev python3-setuptools && \
curl wget bzip2 make gcc cmake g++ keychain git build-essential zlib1g-dev libssl-dev lbzip2 \
libbz2-dev libcurl4-gnutls-dev libncurses5-dev libstdc++6 libncursesw5-dev liblzma-dev clang \
libclang-dev pkg-config libtcmalloc-minimal4 python3-dev python3-setuptools && \
rm -rf /var/lib/apt/lists/*

# Reduced gcloud installation (from framegrace: https://github.com/GoogleCloudPlatform/gsutil/issues/1732#issuecomment-2029591598)
Expand Down Expand Up @@ -58,19 +57,30 @@ RUN git clone https://github.com/broadinstitute/hidive.git && \
rm -rf hidive

# Install minimap2
RUN git clone https://github.com/lh3/minimap2 && \
cd minimap2 && \
RUN wget -O minimap2-2.28.tar.bz2 https://github.com/lh3/minimap2/releases/download/v2.28/minimap2-2.28.tar.bz2 && \
tar -vxjf minimap2-2.28.tar.bz2 && \
cd minimap2-2.28 && \
make && \
cp minimap2 /usr/local/bin/ && \
cd .. && \
rm -rf minimap2
rm -rf minimap2-2.28 minimap2-2.28.tar.bz2

# Install samtools
RUN wget -O samtools-1.21.tar.bz2 https://github.com/samtools/samtools/releases/download/1.21/samtools-1.21.tar.bz2 && \
tar -vxjf samtools-1.21.tar.bz2 && \
cd samtools-1.21 && \
make && \
cp samtools /usr/local/bin/ && \
cd .. && \
rm -rf samtools-1.21 samtools-1.21.tar.bz2

# Final stage
FROM python:3.9-slim

# Copy necessary files from builder stage
COPY --from=builder /usr/local/bin/hidive /usr/local/bin/hidive
COPY --from=builder /usr/local/bin/minimap2 /usr/local/bin/minimap2
COPY --from=builder /usr/local/bin/samtools /usr/local/bin/samtools
COPY --from=builder /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4

# Copy gcloud utilities from builder stage
Expand Down

0 comments on commit 052c5f2

Please sign in to comment.