-
Notifications
You must be signed in to change notification settings - Fork 125
/
Dockerfile
55 lines (46 loc) · 1.36 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
53
54
55
# base image
FROM ubuntu:xenial
# metadata
LABEL base.image="ubuntu:xenial"
LABEL version="1"
LABEL software="mashtree"
LABEL software.version="0.57.0"
LABEL description="Create a tree using Mash distances"
LABEL website="https://github.com/lskatz/mashtree"
LABEL license="https://github.com/lskatz/mashtree/blob/master/LICENSE"
LABEL maintainer="Abigail Shockey"
LABEL maintainer.email="[email protected]"
# install dependencies
RUN apt-get update && \
apt-get -y install \
perl \
bioperl \
build-essential \
sqlite3 \
libjson-perl \
make \
wget && \
apt-get clean
# install mash
RUN wget https://github.com/marbl/Mash/releases/download/v2.1/mash-Linux64-v2.1.tar && \
tar -xvf mash-Linux64-v2.1.tar && \
rm -rf mash-Linux64-v2.1.tar
# install quicktree
RUN wget https://github.com/khowe/quicktree/archive/v2.5.tar.gz && \
tar -xvf v2.5.tar.gz && \
rm -rf v2.5.tar.gz && \
cd quicktree-2.5 && \
make quicktree
# add mash and quicktree to the path to allow mashtree to pass tests
ENV PATH="${PATH}:/mash-Linux64-v2.1:/quicktree-2.5"
# install mashtree
RUN wget https://github.com/lskatz/mashtree/archive/v0.57.tar.gz && \
tar -xvf v0.57.tar.gz && \
rm -rf v0.57.tar.gz && \
cd mashtree-0.57/ && \
perl Makefile.PL && \
mkdir /data
ENV PATH="${PATH}:/mashtree-0.57/bin"
# set perl locale settings
ENV LC_ALL=C
WORKDIR /data