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
57 lines (49 loc) · 1.59 KB
/
Dockerfile
File metadata and controls
57 lines (49 loc) · 1.59 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
FROM ubuntu:focal
# For easy upgrade later. ARG varibles only persist during docker image build time
ARG ABRICATE_VER="1.0.0"
LABEL base.image="ubuntu:focal"
LABEL dockerfile.version="2"
LABEL software="Abricate"
LABEL software.version="1.0.0"
LABEL description="Mass screening of contigs for AMR or virulence genes"
LABEL website="https://github.com/tseemann/abricate"
LABEL license="https://github.com/tseemann/abricate/blob/master/LICENSE"
LABEL maintainer="Curtis Kapsak"
LABEL maintainer.email="pjx8@cdc.gov"
# install dependencies
# removed: emboss
# ncbi-blast+ version in apt for ubuntu:focal = v2.9.0
RUN apt-get update && apt-get install -y --no-install-recommends \
bioperl \
gzip \
unzip \
liblist-moreutils-perl \
libjson-perl \
libtext-csv-perl \
libfile-slurp-perl \
liblwp-protocol-https-perl \
libwww-perl \
libpath-tiny-perl \
git \
ncbi-blast+ \
wget && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# get any2fasta
RUN cd /usr/local/bin && \
wget https://raw.githubusercontent.com/tseemann/any2fasta/master/any2fasta && \
chmod +x any2fasta
# download abricate
RUN wget https://github.com/tseemann/abricate/archive/v${ABRICATE_VER}.tar.gz && \
tar -zxvf v${ABRICATE_VER}.tar.gz && \
rm -rf v${ABRICATE_VER}.tar.gz
# set $PATH
# set perl locale settings for singularity compatibility
ENV PATH="/abricate-${ABRICATE_VER}/bin:\
$PATH"\
LC_ALL=C
# check dependencies, setup db's, make working directory /data
# tests now run as part of travis, instead of in dockerfile
RUN abricate --check && \
abricate --setupdb && \
mkdir /data
WORKDIR /data