-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathDockerfile
42 lines (36 loc) · 1.26 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
FROM ubuntu:xenial
ARG SISTR_VER="1.0.2"
ARG MASH_VER="2.2"
LABEL base.image="ubuntu:xenial"
LABEL dockerfile.version="2"
LABEL software="SISTR"
LABEL software.version="1.0.2"
LABEL description="Salmonella In Silico Typing Resource (SISTR)"
LABEL website="https://github.com/peterk87/sistr_cmd"
LABEL license="https://github.com/peterk87/sistr_cmd/blob/master/LICENSE"
LABEL maintainer="Curtis Kapsak"
LABEL maintainer.email="[email protected]"
# install dependencies; cleanup apt garbage
# ncbi-blast = 2.2.31
# mafft = 7.271
RUN apt-get update && apt-get -y --no-install-recommends install \
python-pip \
python-dev \
python-setuptools \
build-essential \
wget \
ncbi-blast+ \
mafft && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# install mash
RUN wget https://github.com/marbl/Mash/releases/download/v${MASH_VER}/mash-Linux64-v${MASH_VER}.tar && \
tar -xvf mash-Linux64-v${MASH_VER}.tar && \
rm -rf mash-Linux64-v${MASH_VER}.tar
# upgrade pip first; install python deps and SISTR
RUN python -m pip install --upgrade pip && \
python -m pip install wheel numpy pandas sistr_cmd==${SISTR_VER} && \
mkdir /data
# set working directory, PATH, and locale settings for singularity (just in case)
WORKDIR /data
ENV LC_ALL=C \
PATH="${PATH}:/mash-Linux64-v${MASH_VER}"