-
Notifications
You must be signed in to change notification settings - Fork 124
/
Dockerfile
53 lines (38 loc) · 1.59 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
ARG PPANGGOLIN_VER="2.0.5"
FROM mambaorg/micromamba:1.5.6 as app
ARG PPANGGOLIN_VER
# 'LABEL' instructions tag the image with metadata that might be important to the user
LABEL base.image="mambaorg/micromamba:1.5.6"
LABEL dockerfile.version="1"
LABEL software="PPanGGOLiN"
LABEL software.version="${PPANGGOLIN_VER}"
LABEL description="Depicting microbial species diversity via a Partitioned PanGenome Graph Of Linked Neighbors"
LABEL website="https://github.com/labgem/PPanGGOLiN"
LABEL license="https://github.com/labgem/PPanGGOLiN/blob/master/LICENSE.txt"
LABEL maintainer="Erin Young"
LABEL maintainer.email="[email protected]"
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
procps \
wget && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
ENV PATH="/opt/conda/envs/base/bin/:/opt/conda/bin/:$PATH" LC_ALL=C
RUN micromamba install --name base -c conda-forge -c bioconda -c defaults ppanggolin=${PPANGGOLIN_VER} && \
micromamba clean -a -y && \
ppanggolin -h && \
mkdir /data
# 'CMD' instructions set a default command when the container is run. This is typically 'tool --help.'
CMD ppanggolin -h
# 'WORKDIR' sets working directory
WORKDIR /data
FROM app as test
ARG PPANGGOLIN_VER
WORKDIR /test
RUN ppanggolin --help && \
ppanggolin --version
# getting test files from github repo
RUN wget -q https://github.com/labgem/PPanGGOLiN/archive/refs/tags/${PPANGGOLIN_VER}.tar.gz && \
tar -xvf ${PPANGGOLIN_VER}.tar.gz
RUN cd PPanGGOLiN-${PPANGGOLIN_VER}/testingDataset && \
ppanggolin all --fasta genomes.fasta.list --output output