-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
50 lines (42 loc) · 1.61 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
# Minimal Docker image for FAVITES-Lite using Ubuntu base
FROM ubuntu:20.04
MAINTAINER Niema Moshiri <[email protected]>
# Set up environment and install dependencies
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y g++ make python3 python3-pip wget && \
# install Python 3 packages
pip3 install --no-cache-dir treesap treeswift && \
# install NiemaGraphGen
wget -qO- "https://github.com/niemasd/NiemaGraphGen/archive/refs/tags/1.0.6.tar.gz" | tar -zx && \
cd NiemaGraphGen-* && \
make && \
mv ngg_* /usr/local/bin/ && \
cd .. && \
rm -rf NiemaGraphGen-* && \
# install GEMF_FAVITES
wget -qO- "https://github.com/niemasd/GEMF/archive/refs/tags/1.0.3.tar.gz" | tar -zx && \
cd GEMF-* && \
make && \
mv GEMF GEMF_FAVITES.py /usr/local/bin/ && \
cd .. && \
rm -rf GEMF-* && \
# install CoaTran
wget -qO- "https://github.com/niemasd/CoaTran/archive/refs/tags/0.0.4.tar.gz" | tar -zx && \
cd CoaTran-* && \
make && \
mv coatran_* /usr/local/bin/ && \
cd .. && \
rm -rf CoaTran-* && \
# install Seq-Gen
wget -qO- "https://github.com/rambaut/Seq-Gen/archive/refs/tags/1.3.4.tar.gz" | tar -zx && \
cd Seq-Gen-*/source && \
make && \
mv seq-gen /usr/local/bin/ && \
cd ../.. && \
rm -rf Seq-Gen-* && \
# set up FAVITES-Lite
wget -qO- "https://github.com/niemasd/FAVITES-Lite/tarball/master" | tar -zx && \
mv *FAVITES-Lite* /usr/local/bin/FAVITES-Lite && \
ln -s /usr/local/bin/FAVITES-Lite/favites_lite.py /usr/local/bin/favites_lite.py && \
# Clean up
rm -rf /root/.cache /tmp/*