-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (42 loc) · 1.61 KB
/
Dockerfile
File metadata and controls
55 lines (42 loc) · 1.61 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
FROM ubuntu:jammy as app
# default version
ARG HEATCLUSTER_VER="1.2.5.20240904"
# adding labels
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="5"
LABEL software="heatcluster"
LABEL software.version="${HEATCLUSTER_VER}"
LABEL version="${HEATCLUSTER_VER}"
LABEL description="Visualize SNP matrix from snp-dists output"
LABEL website="https://github.com/DrB-S/heatcluster"
LABEL license="https://github.com/DrB-S/heatcluster/blob/master/LICENSE"
LABEL name="heatcluster/${HEATCLUSTER_VER}"
LABEL maintainer="Stephen Beckstrom-Sternberg"
LABEL maintainer.email="stephen.beckstrom-sternberg@azdhs.gov"
# installing apt-get dependencies
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
ca-certificates \
wget \
procps \
python3 \
python3-pip && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# installing python dependencies
RUN pip3 install --no-cache argparse pandas numpy pathlib seaborn matplotlib --upgrade-strategy=only-if-needed
# copying files to docker image
COPY . /heatcluster
ENV PATH=/heatcluster:$PATH
# makes sure heacluster is in path
RUN python heatcluster.py -h
# default command for the container
CMD python heatcluster.py -h
FROM app as test
WORKDIR /test
RUN echo "Show heatcluster version number and help file: " && \
python heatcluster.py --version && \
python heatcluster.py --help
RUN echo "Test a small and medium matrix :" && \
python heatcluster.py -i /heatcluster/test/small_matrix.csv -t png -o small_test && \
python heatcluster.py -i /heatcluster/test/med_matrix.txt -t pdf -o med_test && \
ls med_test.pdf && ls small_test.png