-
Notifications
You must be signed in to change notification settings - Fork 996
Expand file tree
/
Copy pathDockerfile.authoritative
More file actions
24 lines (20 loc) · 1.15 KB
/
Dockerfile.authoritative
File metadata and controls
24 lines (20 loc) · 1.15 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
FROM alpine:3.23 AS pdns-authoritative
ARG BUILDER_CACHE_BUSTER=
RUN apk add --no-cache gcc g++ make tar autoconf automake protobuf-dev lua-dev \
libtool file boost-dev curl openssl-dev ragel python3 \
flex bison git bash
# the pdns/ dir is a bit broad, but who cares :)
ADD configure.ac Makefile.am COPYING INSTALL NOTICE README /pdns-authoritative/
@EXEC sdist_paths=(build-aux m4 pdns ext docs modules codedocs contrib regression-tests meson meson.build meson_options.txt)
@EXEC for d in ${sdist_paths[@]} ; do echo "COPY $d /pdns-authoritative/$d" ; done
ADD builder/helpers/set-configure-ac-version.sh /pdns-authoritative/builder/helpers/
ADD builder-support/gen-version /pdns-authoritative/builder-support/gen-version
WORKDIR /pdns-authoritative/
RUN mkdir /sdist
ARG BUILDER_VERSION
RUN rm -rf /pdns-authoritative/docs/.venv
RUN /pdns-authoritative/builder/helpers/set-configure-ac-version.sh && \
autoreconf -v -i --force && \
./configure --disable-lua-records --disable-ixfrdist --without-modules --without-dynmodules --disable-dependency-tracking && \
make dist
RUN cp pdns-${BUILDER_VERSION}.tar.bz2 /sdist/