From c43e5b1be9451604d7641282da61661360c287f7 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 8 Aug 2017 09:45:37 +0300
Subject: [PATCH] - Validate the Unbound configuration during the image build.

---
 Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 21ac6bc..51380b2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,8 @@ FROM debian:stretch-slim
 ENV DEBIAN_FRONTEND noninteractive
 RUN apt-get update && \
     apt-get install -y unbound unbound-host dnsutils dma bsd-mailx && \
-    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
+    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* &&
+    unbound-checkconf
 COPY entrypoint.sh /entrypoint.sh
 ENTRYPOINT ["/entrypoint.sh"]
 CMD ["/bin/bash", "--login"]
-- 
GitLab