forked from sanger-pathogens/ariba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.04 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
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
MAINTAINER ariba-help@sanger.ac.uk
RUN apt-get -qq update && \
apt-get install --no-install-recommends -y \
build-essential \
cd-hit \
curl \
git \
libbz2-dev \
liblzma-dev \
mummer \
python3-dev \
python3-setuptools \
python3-pip \
python3-tk \
python3-matplotlib \
unzip \
wget \
zlib1g-dev
RUN wget -q http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/2.2.9/bowtie2-2.2.9-linux-x86_64.zip \
&& unzip bowtie2-2.2.9-linux-x86_64.zip \
&& rm -f bowtie2-2.2.9-linux-x86_64.zip
# Need MPLBACKEND="agg" to make matplotlib work without X11, otherwise get the error
# _tkinter.TclError: no display name and no $DISPLAY environment variable
ENV ARIBA_BOWTIE2=$PWD/bowtie2-2.2.9/bowtie2 ARIBA_CDHIT=cdhit-est MPLBACKEND="agg"
RUN cd /usr/local/bin && ln -s /usr/bin/python3 python && cd
RUN git clone https://github.com/sanger-pathogens/ariba.git \
&& cd ariba \
&& git checkout v2.14.0 \
&& python3 setup.py test \
&& python3 setup.py install
CMD ariba