forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
52 lines (38 loc) · 1.51 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
FROM mambaorg/micromamba:1.4.9 as app
ARG BAKTA_VER="1.9.2"
ARG DIAMOND_VER="2.1.8"
# 'LABEL' instructions tag the image with metadata that might be important to the user
LABEL base.image="mambaorg/micromamba:1.4.9"
LABEL dockerfile.version="1"
LABEL software="Bakta"
LABEL software.version="${BAKTA_VER}"
LABEL description="rapid & standardized annotation of bacterial genomes, MAGs & plasmids"
LABEL website="https://github.com/oschwengers/bakta"
LABEL license="https://github.com/oschwengers/bakta/blob/main/LICENSE"
LABEL maintainer="Erin Young"
LABEL maintainer.email="eriny@utah.gov"
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
procps \
ca-certificates && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN micromamba install --name base -c conda-forge -c bioconda -c defaults bakta=${BAKTA_VER} diamond=${DIAMOND_VER} && \
micromamba clean -a -y && \
mkdir /data
ENV PATH="/opt/conda/bin/:$PATH" \
LC_ALL=C
CMD bakta --help
WORKDIR /data
FROM app as test
#export BAKTA_DB=/test/db-light
WORKDIR /test
RUN bakta --help && \
bakta_db --help && \
bakta --version
RUN bakta_db list && \
bakta_db download --type light
RUN wget -q https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/195/815/GCF_000195815.1_ASM19581v1/GCF_000195815.1_ASM19581v1_genomic.fna.gz && \
gunzip GCF_000195815.1_ASM19581v1_genomic.fna.gz && \
bakta --db /test/db-light GCF_000195815.1_ASM19581v1_genomic.fna && \
head GCF_000195815.1_ASM19581v1_genomic.gbff