forked from nickjcroucher/gubbins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (65 loc) · 2.07 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
# Use a LTS Ubuntu version as parent image
FROM ubuntu:16.04
ARG DEBIAN_FRONTEND=noninteractive
ARG PYTHONWARNINGS="ignore:Unverified HTTPS request"
ENV LD_LIBRARY_PATH='/usr/local/lib'
WORKDIR /opt
# Install general dependencies
RUN apt-get update && apt-get install --no-install-recommends -y \
curl \
make \
automake \
gcc \
pkg-config \
zlib1g-dev \
autoconf \
check \
libtool \
libsubunit-dev \
python3 \
python3-dev \
python3-setuptools \
python3-pip
# Install python dependencies
RUN pip3 install --trusted-host pypi.python.org --upgrade pip
RUN pip3 install certifi \
&& pip3 install wheel \
&& pip3 install nose \
&& pip3 install pillow \
&& pip3 install dendropy \
&& pip3 install biopython
# Install RAxML
ARG raxml_version='8.2.12'
RUN curl -L https://github.com/stamatak/standard-RAxML/archive/v${raxml_version}.tar.gz -o standard-RAxML-${raxml_version}.tar.gz \
&& tar xzf standard-RAxML-${raxml_version}.tar.gz \
&& cd standard-RAxML-${raxml_version} \
&& make -f Makefile.gcc \
&& make -f Makefile.PTHREADS.gcc \
&& cp raxmlHPC /usr/local/bin/ \
&& cp raxmlHPC-PTHREADS /usr/local/bin/ \
&& cd .. \
&& rm -rf standard-RAxML-${raxml_version}
# Install FastTree
ARG fasttree_version='2.1.10'
RUN curl http://www.microbesonline.org/fasttree/FastTree-${fasttree_version}.c -o FastTree.c \
&& gcc -O3 -finline-functions -funroll-loops -Wall -o FastTree FastTree.c -lm \
&& mv FastTree /usr/local/bin/ \
&& rm FastTree.c
# Install IQTree
ARG iqtree_version='1.6.6'
RUN curl -L https://github.com/Cibiv/IQ-TREE/releases/download/v${iqtree_version}/iqtree-${iqtree_version}-Linux.tar.gz -o iqtree-${iqtree_version}-Linux.tar.gz \
&& tar xzf iqtree-${iqtree_version}-Linux.tar.gz \
&& cp iqtree-${iqtree_version}-Linux/bin/iqtree /usr/local/bin \
&& rm -rf iqtree-${iqtree_version}-Linux
# Install Gubbins
ENV BUILD_DIR /opt/gubbins
RUN mkdir -p ${BUILD_DIR}
COPY . ${BUILD_DIR}
RUN cd ${BUILD_DIR} \
&& autoreconf -i \
&& ./configure \
&& make \
&& make check \
&& make install \
&& cd python \
&& python3 setup.py install