From 0188fd02fe215a5462bcb61cda2b6e4dd97b1ce3 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Fri, 25 Sep 2020 12:32:14 +0300 Subject: [PATCH] Strip for Zabbix agent 2 --- agent2/alpine/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agent2/alpine/Dockerfile b/agent2/alpine/Dockerfile index 8f0bc9a6c..7820357e6 100644 --- a/agent2/alpine/Dockerfile +++ b/agent2/alpine/Dockerfile @@ -50,8 +50,7 @@ RUN set -eux && \ git \ pcre-dev \ openssl-dev \ - zlib-dev \ - coreutils && \ + zlib-dev && \ cd /tmp/ && \ git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \ cd /tmp/zabbix-${ZBX_VERSION} && \ @@ -76,6 +75,9 @@ RUN set -eux && \ cp /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \ cp /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \ cp /tmp/zabbix-${ZBX_VERSION}/src/go/conf/zabbix_agent2.conf /etc/zabbix/zabbix_agent2.conf && \ + strip /usr/sbin/zabbix_agent2 && \ + strip /usr/bin/zabbix_get && \ + strip /usr/bin/zabbix_sender && \ cd /tmp/ && \ rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \ chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \