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
50 lines (42 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
50 lines (42 loc) · 1.27 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
FROM ubuntu:xenial
# metadata
LABEL base.image="ubuntu:xenial"
LABEL version="1.0.0"
LABEL software="Abricate"
LABEL software.version="0.9.8"
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
RUN apt-get update && apt-get install -y \
emboss \
bioperl \
ncbi-blast+ \
gzip \
unzip \
libjson-perl \
libtext-csv-perl \
libfile-slurp-perl \
liblwp-protocol-https-perl \
libwww-perl \
libpath-tiny-perl \
git \
wget && apt-get clean
# get any2fasta
RUN cd /usr/local/bin && \
wget https://raw.githubusercontent.com/tseemann/any2fasta/master/any2fasta && \
chmod +x any2fasta
RUN wget https://github.com/tseemann/abricate/archive/v0.9.8.tar.gz && \
tar -zxvf v0.9.8.tar.gz && \
rm -rf v0.9.8.tar.gz
ENV PATH="/abricate-0.9.8/bin:$PATH"
# check dependencies, setup db's, test, make working directory '/data'
RUN abricate --check && \
abricate --setupdb && \
abricate /abricate-0.9.8/test/assembly.fa && \
mkdir /data
# set perl locale settings for singularity compatibility
ENV LC_ALL=C
WORKDIR /data