Created
September 8, 2017 08:30
-
-
Save thanhleviet/3797c773b060df75473b6c1263cdd8cf to your computer and use it in GitHub Desktop.
docker for mosdepth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:8.6 | |
LABEL author="Maxime Garcia" \ | |
description="HTSlib 1.4 image for use in CAW" \ | |
maintainer="maxime.garcia@scilifelab.se" | |
# Dockefile for mosdepth is based on Dockerfile for HTSlib 1.4 by Maxime Garcia | |
# I just added few lines for quick building a docker image for mosdepth | |
# Install libraries | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
build-essential \ | |
ca-certificates \ | |
curl \ | |
libbz2-dev \ | |
liblzma-dev \ | |
libncurses5-dev \ | |
libncursesw5-dev \ | |
zlib1g-dev \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Setup ENV variables | |
ENV HTSLIB_BIN="htslib-1.5.tar.bz2" \ | |
HTSLIB_VERSION="1.5" \ | |
MOS_VERSION="v0.1.6" \ | |
LD_LIBRARY_PATH="/usr/local/lib" | |
# Install HTSlib | |
RUN curl -fsSL https://github.com/samtools/htslib/releases/download/$HTSLIB_VERSION/$HTSLIB_BIN -o /opt/$HTSLIB_BIN \ | |
&& tar xvjf /opt/$HTSLIB_BIN -C /opt/ \ | |
&& cd /opt/htslib-$HTSLIB_VERSION \ | |
&& make \ | |
&& make install \ | |
&& rm -rf /opt/$HTSLIB_BIN /opt/htslib-$HTSLIB_VERSION \ | |
&& curl -fsSL https://github.com/brentp/mosdepth/releases/download/$MOS_VERSION/mosdepth -o /usr/bin/mosdepth \ | |
&& chmod +x /usr/bin/mosdepth | |
WORKDIR /data | |
ENTRYPOINT ["mosdepth"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment