forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
67 lines (51 loc) · 1.96 KB
/
Dockerfile
File metadata and controls
67 lines (51 loc) · 1.96 KB
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
ARG PHYML_VER="3.3.20250506"
FROM ubuntu:jammy AS builder
ARG PHYML_VER
# Install dependencies
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update &&\
apt-get install -y --no-install-recommends \
ca-certificates \
pkg-config \
automake \
autoconf \
gcc \
texlive-latex-base \
build-essential \
wget && \
rm -rf /var/lib/apt/lists/* && apt-get autoclean
RUN wget https://github.com/stephaneguindon/phyml/archive/refs/tags/v${PHYML_VER}.tar.gz && \
tar -zxvf v${PHYML_VER}.tar.gz && \
mv phyml-${PHYML_VER} /phyml && \
cd /phyml && \
sh autogen.sh && \
./configure --enable-phyml && \
make
FROM ubuntu:jammy AS app
# for easy upgrade later. ARG variables only persist during image build time
ARG PHYML_VER
# metadata
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="Phyml"
LABEL software.version="${PHYML_VER}"
LABEL description="PhyML estimates maximum likelihood phylogenies from alignments of nucleotide or amino acid sequences."
LABEL website="https://github.com/stephaneguindon/phyml/"
LABEL license="https://github.com/stephaneguindon/phyml/blob/master/COPYING"
LABEL maintainer="Jill Hagey"
LABEL maintainer.email="jvhagey@gmail.com"
COPY --from=builder /phyml /phyml
# Add references and entrypoint script
ENV LC_ALL=C PATH="${PATH}:/phyml/src"
# Add references and entrypoint script
WORKDIR /data
CMD ["phyml", "--help"]
# new base for testing
FROM app AS test
WORKDIR /test
RUN phyml --help || echo "Prints to STDERR for whatever reason"
RUN apt-get update && apt-get install -y --no-install-recommends wget
# Grab test data
RUN wget --no-check-certificate https://raw.githubusercontent.com/StaPH-B/docker-builds/refs/heads/master/build-files/phyml/3.3.20220408/test/snvAlignment.phy && \
phyml -i snvAlignment.phy --datatype nt --model GTR -v 0.0 -s BEST --ts/tv e --nclasses 4 --alpha e --bootstrap -4 --quiet && \
head snvAlignment.phy_phyml_tree.txt