-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
28 lines (22 loc) · 1.1 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
FROM rust:1.65 AS builder
COPY . /drprg
ARG JUST_URL="https://just.systems/install.sh"
ARG V_JUST="1.2.0"
ARG MAFFT_URL="https://mafft.cbrc.jp/alignment/software/mafft_7.505-1_amd64.deb"
ARG DEB="/mafft.deb"
RUN apt update \
&& apt install -y cmake \
&& cargo install --locked --path /drprg --root /usr \
&& (wget -O - "$JUST_URL" | bash -s -- --to /usr/bin --tag "$V_JUST") \
&& just -f /drprg/justfile EXTDIR=/usr/bin pandora \
&& just -f /drprg/justfile EXTDIR=/usr/bin bcftools \
&& just -f /drprg/justfile EXTDIR=/usr/bin makeprg \
&& wget -O "$DEB" "$MAFFT_URL" \
&& dpkg -i "$DEB" \
&& apt remove -y cmake \
&& rm -rf /drprg "$DEB" /var/lib/apt/lists/*
RUN drprg --help && pandora --help && make_prg --help && mafft --version && bcftools --version
# These two are required for the paper pipeline
RUN cargo install --root /usr --version 0.7.0 rasusa && rasusa --version
ARG SEQFU_URL="https://github.com/telatin/seqfu2/releases/download/v1.16.0/SeqFu-v1.16.0-Linux-x86_64.zip"
RUN wget -qO /seqfu.zip $SEQFU_URL && unzip -d /usr/bin /seqfu.zip && rm /seqfu.zip && seqfu version