-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
34 lines (27 loc) · 897 Bytes
/
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
FROM alpine:3.14 as build
RUN apk add --no-cache \
# Compile-time dependencies
build-base \
libidn2-dev \
make \
openssl-dev \
perl-app-cpanminus \
perl-dev \
perl-devel-checklib \
perl-lwp-protocol-https \
perl-module-install \
perl-test-fatal \
&& cpanm --notest --no-wget --from=https://cpan.metacpan.org/ \
Module::Install::XSUtil
ARG version
COPY ./Zonemaster-LDNS-${version}.tar.gz ./Zonemaster-LDNS-${version}.tar.gz
RUN cpanm --notest --no-wget \
./Zonemaster-LDNS-${version}.tar.gz
FROM alpine:3.14
# Include only Zonemaster LDNS modules
COPY --from=build /usr/local/lib/perl5/site_perl/auto/Zonemaster /usr/local/lib/perl5/site_perl/auto/Zonemaster
COPY --from=build /usr/local/lib/perl5/site_perl/Zonemaster /usr/local/lib/perl5/site_perl/Zonemaster
RUN apk add --no-cache \
# Run-time dependencies
libidn2 \
perl