forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (40 loc) · 1.54 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
ARG IQTREE2_VER="2.2.2.7"
FROM ubuntu:jammy as app
# for easy upgrade later. ARG variables only persist during build time.
ARG IQTREE2_VER
# metadata
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="IQ-Tree2"
LABEL software.version="${IQTREE2_VER}"
LABEL description="Efficient software for phylogenomic inference"
LABEL website="http://www.iqtree.org/"
LABEL source.code.website="https://github.com/iqtree/iqtree2"
LABEL license="https://github.com/iqtree/iqtree2/blob/master/LICENSE"
LABEL maintainer="Jade Wang"
LABEL maintainer.email="[email protected]"
LABEL maintainer2="Erin Young"
LABEL maintainer2.email="[email protected]"
#install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
wget ca-certificates procps && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/*
# download, uncompress iqtree2 tarball; make /data
RUN wget https://github.com/iqtree/iqtree2/releases/download/v${IQTREE2_VER}/iqtree-${IQTREE2_VER}-Linux.tar.gz && \
tar -xvf iqtree-${IQTREE2_VER}-Linux.tar.gz && \
rm -v iqtree-${IQTREE2_VER}-Linux.tar.gz && \
mkdir /data
# set PATH and locale settings for singularity compatibility
ENV PATH="/iqtree-${IQTREE2_VER}-Linux/bin:${PATH}"\
LC_ALL=C
# final working directory is /data
WORKDIR /data
# default command is to pull up help options
CMD [ "iqtree2", "--help" ]
FROM app as test
ARG IQTREE2_VER
# print version and help
RUN iqtree2 --version && iqtree2 --help
###TEST TREE TOPOLOGY
RUN iqtree2 -s /iqtree-${IQTREE2_VER}-Linux/example.phy --rate