-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathDockerfile
35 lines (29 loc) · 1.05 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
# base image
FROM ubuntu:xenial
# metadata
LABEL base.image="ubuntu:xenial"
LABEL container.version="1"
LABEL software="Mash"
LABEL software.version="2.2"
LABEL description="Fast genome and metagenome distance estimation using MinHash"
LABEL website="https://mash.readthedocs.io/en/latest/index.html"
LABEL license="https://github.com/marbl/Mash/blob/master/LICENSE.txt"
LABEL maintainer="Curtis Kapsak"
LABEL maintainer.email="[email protected]"
# install dependencies
RUN apt-get update && \
apt-get -y install wget && \
apt-get clean
RUN wget https://github.com/marbl/Mash/releases/download/v2.2/mash-Linux64-v2.2.tar && \
tar -xvf mash-Linux64-v2.2.tar && \
rm -rf mash-Linux64-v2.2.tar && \
mkdir /data
# add mash to path, and set perl locale settings
ENV PATH="${PATH}:/mash-Linux64-v2.2" \
LC_ALL=C
WORKDIR /data
# make db dir. Store db there. Better to have db's added in the last layers
RUN mkdir /db && \
cd /db && \
wget https://gembox.cbcb.umd.edu/mash/RefSeqSketchesDefaults.msh.gz && \
gunzip RefSeqSketchesDefaults.msh.gz