forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (34 loc) · 1.31 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
ARG SKANI_VER="0.2.1"
## Builder ##
FROM rust:1.67 as builder
ARG SKANI_VER
RUN wget https://github.com/bluenote-1577/skani/archive/refs/tags/v${SKANI_VER}.tar.gz &&\
tar -xvf v${SKANI_VER}.tar.gz &&\
cd skani-${SKANI_VER} &&\
cargo install --path . --root ~/.cargo &&\
chmod +x /root/.cargo/bin/skani
## App ##
FROM ubuntu:jammy as app
ARG SKANI_VER
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="skani"
LABEL software.version=${SKANI_VER}
LABEL description="skani is a program for calculating average nucleotide identity (ANI) from DNA sequences (contigs/MAGs/genomes) for ANI > ~80%."
LABEL website="https://github.com/bluenote-1577/skani"
LABEL license="https://github.com/bluenote-1577/skani/blob/main/LICENSE"
LABEL maintainer="Kutluhan Incekara"
LABEL maintainer.email="[email protected]"
# copy app from builder stage
COPY --from=builder /root/.cargo/bin/skani /usr/local/bin/skani
# default run command
CMD skani -h
# singularity compatibility
ENV LC_ALL=C
WORKDIR /data
## Test ##
FROM app as test
RUN apt-get update && apt-get install -y wget &&\
wget https://github.com/bluenote-1577/skani/raw/v0.2.0/refs/e.coli-EC590.fasta &&\
wget https://github.com/bluenote-1577/skani/raw/v0.2.0/refs/e.coli-K12.fasta
RUN skani dist e.coli-EC590.fasta e.coli-K12.fasta