2019-01-17 06:38:47 +00:00
|
|
|
FROM alpine AS mirror
|
|
|
|
|
|
|
|
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
|
|
|
RUN apk add --no-cache --initdb -p /out \
|
|
|
|
unbound
|
|
|
|
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
|
|
|
RUN wget -O /out/etc/unbound/root.hints ftp://ftp.internic.net/domain/named.cache
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=mirror /out/ /
|
|
|
|
COPY etc/unbound/ /etc/unbound
|
2019-12-14 13:26:53 +00:00
|
|
|
|
|
|
|
CMD ["/usr/sbin/unbound", "-d"]
|