From cf0e1aadf4237cbae7aea6ba524dc6e4f916c4e8 Mon Sep 17 00:00:00 2001 From: Mathias Kaufmann Date: Thu, 23 Feb 2017 00:25:21 +0100 Subject: [PATCH] Strip binaries Use install-strip target to reduce the overall size of the image (180 MiB-> 60MiB ) Signed-off-by: Mathias Kaufmann --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bd17f60..a457f1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN apk --update add mysql-client mariadb-client-libs libpq sqlite-libs libstdc+ cd /tmp/pdns-$POWERDNS_VERSION && \ ./configure --prefix="" --exec-prefix=/usr --sysconfdir=/etc/pdns \ --with-modules="bind gmysql gpgsql gsqlite3" --without-lua && \ - make && make install && cd / && \ + make && make install-strip && cd / && \ mkdir -p /etc/pdns/conf.d && \ addgroup -S pdns 2>/dev/null && \ adduser -S -D -H -h /var/empty -s /bin/false -G pdns -g pdns pdns 2>/dev/null && \