forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
55 lines (47 loc) · 1.93 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
48
49
50
51
52
53
54
55
# FROM defines the base docker image to start from. This command has to come first in the file
FROM ubuntu:xenial
ARG SAMTOOLSVER=1.11
ARG BOWTIE2VER=2.4.4
# metadata (there are a few other labels you can add, these are optional but preferred!)
LABEL base.image="ubuntu:xenial"
LABEL dockerfile.version="1"
LABEL software="Bowtie2,\n Samtools"
LABEL software.versions="2.4.4,\n 1.10"
LABEL description="Bowtie2: Genome assembler using a reference and mapping\n Samtools: a set of tools for interacting with and reformatting sequence data"
LABEL website="http://bowtie-bio.sourceforge.net/bowtie2/manual.shtml\n https://www.htslib.org/"
LABEL maintainer="Holly Halstead"
LABEL maintainer.email="[email protected]"
# install dependencies, cleanup apt garbage.
RUN apt-get update && apt-get install -y \
build-essential=12.1ubuntu2 \
autoconf=2.69-9 \
zlib1g-dev=1:1.2.8.dfsg-2ubuntu4.3 \
python3=3.5.1-3 \
wget=1.17.1-1ubuntu1.5 \
libbz2-dev=1.0.6-8ubuntu0.2 \
liblzma-dev=5.1.1alpha+20120614-2ubuntu2 \
libncurses5-dev=6.0+20160213-1ubuntu1 \
git=1:2.7.4-0ubuntu1.10 \
bedtools=2.25.0-1 \
python3-pip=8.1.1-2ubuntu0.6 \
vim=2:7.4.1689-3ubuntu1.5 \
unzip=6.0-20ubuntu1.1 \
nano=2.5.3-2ubuntu2 && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# download, unpack Bowtie2 and Samtools
RUN wget -q -O bowtie2.zip http://sourceforge.net/projects/bowtie-bio/files/bowtie2/${BOWTIE2VER}/bowtie2-${BOWTIE2VER}-linux-x86_64.zip/download; \
unzip bowtie2.zip -d /opt/; \
ln -s /opt/bowtie2-${BOWTIE2VER}-linux-x86_64/ /opt/bowtie2; \
rm bowtie2.zip
ENV PATH $PATH:/opt/bowtie2
#samtools# SAMtools
RUN wget https://github.com/samtools/samtools/releases/download/${SAMTOOLSVER}/samtools-${SAMTOOLSVER}.tar.bz2 && \
tar -xjf samtools-${SAMTOOLSVER}.tar.bz2 && \
rm samtools-${SAMTOOLSVER}.tar.bz2 && \
cd samtools-${SAMTOOLSVER} && \
./configure && \
make && \
make install
# set working directory
WORKDIR /data
CMD ["bowtie2"]