forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
75 lines (68 loc) · 2.16 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM ubuntu:18.04
# for easy upgrade later. ARG variables only persist during image build
ARG SAMTOOLSVER=1.12
ARG HTSLIBVER=1.12
ARG IVARVER=1.3.1
LABEL base.image="ubuntu:18.04"
LABEL dockerfile.version="2"
LABEL software="iVar"
LABEL software.version="1.3.1"
LABEL description="Computational package that contains functions broadly useful for viral amplicon-based sequencing."
LABEL comments="Contains iVar 1.3.1 as well as htslib/samtools 1.12"
LABEL website="https://github.com/andersen-lab/ivar"
LABEL license="https://github.com/andersen-lab/ivar/blob/master/LICENSE"
LABEL maintainer1="Erin Young"
LABEL maintainer1.email="[email protected]"
LABEL maintainer2="Curtis Kapsak"
LABEL maintainer2.email="[email protected]"
LABEL modified.from="https://github.com/andersen-lab/ivar/blob/master/Dockerfile"
LABEL original.maintainer="Kathik G"
LABEL original.maintainer.email="[email protected]"
# install dependencies, cleanup apt garbage.
# bedtools version=2.26.0
RUN apt-get update && apt-get install -y \
build-essential \
autoconf \
zlib1g-dev \
python3 \
wget \
libbz2-dev \
liblzma-dev \
libncurses-dev \
git \
bedtools \
python3-pip \
vim \
nano && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN cd root/ &&\
wget https://github.com/samtools/htslib/releases/download/${HTSLIBVER}/htslib-${HTSLIBVER}.tar.bz2 && \
tar xvf htslib-${HTSLIBVER}.tar.bz2 && \
cd htslib-${HTSLIBVER}/ && \
./configure && \
make && \
make install && \
cd ../ && \
rm htslib-${HTSLIBVER}.tar.bz2
ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
# 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
# iVar; make /data
RUN cd root/ && \
wget https://github.com/andersen-lab/ivar/archive/v${IVARVER}.tar.gz && \
tar -xvf v${IVARVER}.tar.gz && \
rm -rf v${IVARVER}.tar.gz && \
cd ivar-${IVARVER} && \
./autogen.sh && \
./configure && \
make && \
make install && \
mkdir /data
# set /data as working directory
WORKDIR /data