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
56 lines (42 loc) · 1.83 KB
/
Dockerfile
File metadata and controls
56 lines (42 loc) · 1.83 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ARG IGVREPORTS_VER=1.15.1
FROM ubuntu:jammy AS app
ARG IGVREPORTS_VER
# 'LABEL' instructions tag the image with metadata that might be important to the user
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="IGV Reports"
LABEL software.version="${IGVREPORTS_VER}"
LABEL description="A Python application to generate self-contained HTML reports for variant review and other genomic applications."
LABEL website="https://github.com/igvteam/igv-reports"
LABEL license="https://github.com/igvteam/igv-reports/blob/master/LICENSE.md"
LABEL maintainer="Erin Young"
LABEL maintainer.email="eriny@utah.gov"
# 'RUN' executes code during the build
# Install dependencies via apt-get or yum if using a centos or fedora base
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates \
python3-pip \
libcurl4-gnutls-dev && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir igv-reports==${IGVREPORTS_VER}
ENV PATH="$PATH" LC_ALL=C CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
CMD [ "create_report", "-h" ]
WORKDIR /data
FROM app AS test
ARG IGVREPORTS_VER
WORKDIR /test
RUN create_report -h
RUN wget -q https://github.com/igvteam/igv-reports/archive/refs/tags/v${IGVREPORTS_VER}.tar.gz && \
tar -xvf v${IGVREPORTS_VER}.tar.gz && \
cd igv-reports-${IGVREPORTS_VER} && \
create_report test/data/variants/variants.vcf.gz \
--genome hg38 \
--ideogram test/data/hg38/cytoBandIdeo.txt \
--flanking 1000 \
--info-columns GENE TISSUE TUMOR COSMIC_ID GENE SOMATIC \
--samples reads_1_fastq \
--sample-columns DP GQ \
--tracks test/data/variants/variants.vcf.gz test/data/variants/recalibrated.bam test/data/hg38/refGene.txt.gz \
--output example_vcf.html && \
wc -l example_vcf.html