pkg: add Unbound
This commit is contained in:
parent
43d1f56e71
commit
79f135a040
|
@ -0,0 +1,15 @@
|
|||
FROM alpine:3.7
|
||||
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
||||
|
||||
RUN apk add --no-cache unbound
|
||||
COPY docker-entrypoint.sh /
|
||||
|
||||
VOLUME /etc/unbound
|
||||
|
||||
EXPOSE 53
|
||||
EXPOSE 53/udp
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["/usr/sbin/unbound", "-d"]
|
||||
|
||||
LABEL org.mobyproject.config='{"binds": ["/etc/resolv.conf:/etc/resolv.conf"], "capabilities": ["CAP_NET_BIND_SERVICE"]}'
|
|
@ -0,0 +1 @@
|
|||
image: unbound
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ `which unbound-$1 2>/dev/null` ]; then
|
||||
set -- unbound-"$@"
|
||||
elif [ ! `which $1 2>/dev/null` ]; then
|
||||
set -- unbound -dv "$@"
|
||||
fi
|
||||
|
||||
unbound-anchor
|
||||
|
||||
exec "$@"
|
Reference in New Issue