forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (29 loc) · 1.28 KB
/
Dockerfile
File metadata and controls
41 lines (29 loc) · 1.28 KB
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
FROM mambaorg/micromamba:2.0.8-ubuntu22.04 AS app
ARG FREEBAYES_VER="1.3.9"
USER root
WORKDIR /
LABEL base.image="mambaorg/micromamba:2.0.8-ubuntu22.04"
LABEL dockerfile.version="1"
LABEL software="FreeBayes"
LABEL software.version="${FREEBAYES_VER}"
LABEL description="FreeBayes is a haplotype-based variant detector and is a great tool for calling variants from a population."
LABEL website="https://github.com/freebayes/freebayes"
LABEL license="https://github.com/freebayes/freebayes/blob/master/LICENSE"
LABEL maintainer="Kitty Chase"
LABEL maintainer.email="kitty.chase@dhhs.nc.gov"
LABEL maintainer2="Jill Hagey"
LABEL maintainer2.email="jvhagey@gmail.com"
RUN micromamba install --name base -c conda-forge -c bioconda freebayes=${FREEBAYES_VER} && \
micromamba clean -a -f -y
ENV PATH="/opt/conda/bin/:${PATH}" \
LC_ALL=C.UTF-8
CMD [ "freebayes", "--help" ]
WORKDIR /data
## Test ##
FROM app AS test
WORKDIR /test
RUN freebayes --help
RUN wget https://github.com/StaPH-B/docker-builds/raw/master/tests/SARS-CoV-2/SRR13957123.sorted.bam && \
wget https://raw.githubusercontent.com/artic-network/primer-schemes/refs/heads/master/nCoV-2019/V5.3.2/SARS-CoV-2.reference.fasta && \
freebayes -f SARS-CoV-2.reference.fasta SRR13957123.sorted.bam > var.vcf && \
head var.vcf