-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (52 loc) · 1.59 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
48
49
50
51
52
# checkov:skip=CKV_DOCKER_2:Healthcheck less applicable to CLI-style image.
FROM ubuntu:24.04
LABEL org.opencontainers.image.source="https://github.com/andreaso/zonemaster-image"
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
ca-certificates \
cpanminus \
libc6-dev \
libclass-accessor-perl \
libclone-perl \
libdevel-checklib-perl \
libemail-valid-perl \
libfile-sharedir-perl \
libfile-slurp-perl \
libidn2-dev \
libintl-perl \
libio-socket-inet6-perl \
libjson-xs-perl \
liblist-moreutils-perl \
liblocale-po-perl \
liblog-any-perl \
libmail-spf-perl \
libmailtools-perl \
libmime-base32-perl \
libmodule-find-perl \
libmodule-install-xsutil-perl \
libmoosex-getopt-perl \
libnet-ip-xs-perl \
libpod-coverage-perl \
libreadonly-perl \
libssl-dev \
libsub-override-perl \
libtest-differences-perl \
libtest-exception-perl \
libtest-fatal-perl \
libtest-nowarnings-perl \
libtest-pod-perl \
libtext-csv-perl \
libtry-tiny-perl \
libyaml-libyaml-perl \
make \
&& rm -rf /var/lib/apt/lists/*
RUN cpanm https://cpan.metacpan.org/authors/id/Z/ZN/ZNMSTR/Zonemaster-LDNS-4.0.2.tar.gz \
&& cpanm https://cpan.metacpan.org/authors/id/Z/ZN/ZNMSTR/Zonemaster-Engine-v6.0.0.tar.gz \
&& cpanm https://cpan.metacpan.org/authors/id/Z/ZN/ZNMSTR/Zonemaster-CLI-v7.0.0.tar.gz \
&& rm -rf /root/.cpanm/
COPY entry /entry
COPY profile.json.in /etc/zonemaster-profile.json.in
RUN useradd --create-home --comment "Zone Master" --shell /bin/dash --user-group --uid 4848 zonemaster
USER zonemaster
ENTRYPOINT ["/entry"]
CMD ["--help"]