FROM alpine:3.15.5 ARG UNBOUND_VERSION=1.22.0 COPY bootstrap-image.sh /tmp/ RUN sh /tmp/bootstrap-image.sh -x && rm -rf /tmp/* COPY healthcheck.sh /srv/ COPY unbound.conf /srv/unbound/unbound.conf HEALTHCHECK --interval=10s --timeout=1s --retries=1 CMD ["sh", "/srv/healthcheck.sh"] ENTRYPOINT ["sh", "-c", "unbound -V && unbound -c /srv/unbound/unbound.conf -d"]