mirror of
https://github.com/klutchell/unbound-docker.git
synced 2026-10-16 16:02:58 +00:00
https://nlnetlabs.nl/projects/unbound/download/#unbound-1-13-0 Change-type: minor Signed-off-by: Kyle Harding <kyle@balena.io>
39 lines
1.1 KiB
Docker
39 lines
1.1 KiB
Docker
ARG ARCH=amd64
|
|
|
|
FROM klutchell/buildroot-rootfs-$ARCH:2020.11 as buildroot
|
|
|
|
COPY package ./package
|
|
|
|
COPY rootfs_overlay ./rootfs_overlay
|
|
|
|
COPY config.pkg ./config.pkg
|
|
|
|
RUN support/kconfig/merge_config.sh -m .config config.pkg
|
|
|
|
RUN make olddefconfig && make source
|
|
|
|
RUN make
|
|
|
|
# hadolint ignore=DL3002
|
|
USER root
|
|
|
|
WORKDIR /rootfs
|
|
|
|
RUN tar xpf /home/br-user/output/images/rootfs.tar -C /rootfs
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=buildroot rootfs/ /
|
|
|
|
ENTRYPOINT [ "unbound" ]
|
|
|
|
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
|
CMD [ "dig", "sigok.verteiltesysteme.net", "@127.0.0.1" ]
|
|
|
|
LABEL org.opencontainers.image.authors "Kyle Harding <https://klutchell.dev>"
|
|
LABEL org.opencontainers.image.url "https://github.com/klutchell/unbound-dnscrypt"
|
|
LABEL org.opencontainers.image.documentation "https://github.com/klutchell/unbound-dnscrypt"
|
|
LABEL org.opencontainers.image.source "https://github.com/klutchell/unbound-dnscrypt"
|
|
LABEL org.opencontainers.image.title "klutchell/unbound-dnscrypt"
|
|
LABEL org.opencontainers.image.description "Unbound is a validating, recursive, caching DNS resolver"
|