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/ && \