ADD file:c679662d1fba5d188d8f31ab4ebeb7099221926df7630a6917aa461fc33d7ea6 in / |
CMD ["/bin/sh"] |
ARG UNBOUND_VERSION=1.21.0 |
RUN |1 UNBOUND_VERSION=1.21.0 /bin/sh -c apk --update add --no-cache alpine-sdk bison dns-root-hints expat-dev flex git openssl-dev && git clone --depth 1 --branch "release-${UNBOUND_VERSION}" https://github.com/NLnetLabs/unbound.git /tmp/unbound && cd /tmp/unbound && ./configure && make && make install && make clean && cd /srv && rm -rf /tmp/* && apk del alpine-sdk bison expat-dev flex git openssl-dev # buildkit |
COPY entrypoint.sh /srv/ # buildkit |
COPY healthcheck.sh /srv/ # buildkit |
RUN |1 UNBOUND_VERSION=1.21.0 /bin/sh -c addgroup -S unbound && adduser -S -G unbound unbound # buildkit |
RUN |1 UNBOUND_VERSION=1.21.0 /bin/sh -c mkdir -p /srv/unbound/conf # buildkit |
COPY unbound.conf /srv/unbound/unbound.conf # buildkit |
HEALTHCHECK &{["CMD-SHELL" "sh /srv/healthcheck.sh"] "10s" "1s" "0s" '\x01'} |
ENTRYPOINT ["sh" "/srv/entrypoint.sh"] |