-
Notifications
You must be signed in to change notification settings - Fork 119
/
Dockerfile
55 lines (42 loc) · 1.69 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
FROM staphb/ispcr:33 as app
ARG ELGATO_VER="1.20.1"
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="el_gato"
LABEL software.version="${ELGATO_VER}"
LABEL description="Epidemiology of Legionella : Genome-bAsed Typing"
LABEL website="https://github.com/appliedbinf/el_gato"
LABEL license="https://github.com/appliedbinf/el_gato/blob/main/LICENSE"
LABEL maintainer="Kutluhan Incekara"
LABEL maintainer.email="[email protected]"
WORKDIR /
# dependencies
RUN apt-get update && apt-get install --no-install-recommends -y \
wget \
python3-pip \
minimap2 \
samtools \
ncbi-blast+ && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# install el_gato
RUN wget --no-check-certificate https://github.com/appliedbinf/el_gato/archive/refs/tags/${ELGATO_VER}.tar.gz &&\
tar -xvf ${ELGATO_VER}.tar.gz && rm ${ELGATO_VER}.tar.gz &&\
cd el_gato-${ELGATO_VER} &&\
python3 -m pip install . -vv --no-cache-dir &&\
mv ./el_gato/db/ /usr/local/bin/db/
# install fpd2 for pdf reports
RUN pip install --no-cache-dir fpdf2 packaging
ENV LC_ALL=C
CMD el_gato.py -h
WORKDIR /data
## Test ##
FROM app as test
RUN apt-get update && apt-get install unzip
# download Legionella pneumophila ST62 genome
RUN wget -P /usr/local/bin/ https://ftp.ncbi.nlm.nih.gov/pub/datasets/command-line/v2/linux-amd64/datasets &&\
chmod 755 /usr/local/bin/datasets &&\
datasets download genome accession GCF_900119765.1 --include genome &&\
unzip -j ncbi_dataset.zip ncbi_dataset/data/GCF_900119765.1/GCF_900119765.1_2532STDY5467631_genomic.fna -d .
# test el_gato
RUN el_gato.py --assembly GCF_900119765.1_2532STDY5467631_genomic.fna --out test/ &&\
cat test/run.log