Added --no-network flag for build packages purge operation in Alpine images

This commit is contained in:
Alexey Pustovalov 2019-08-13 23:10:24 +03:00
parent e45dbaa026
commit ce302a1322
12 changed files with 12 additions and 12 deletions

View File

@ -90,7 +90,7 @@ RUN set -eux && \
cp /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf && \
cd /tmp/ && \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -73,7 +73,7 @@ RUN set -eux && \
rm -rf /usr/sbin/zabbix_java/lib/*.xml && \
cd /tmp/ && \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -119,7 +119,7 @@ RUN set -eux && \
cp database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
cd /tmp/ && \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -115,7 +115,7 @@ RUN set -eux && \
chown --quiet -R zabbix:root /etc/zabbix && \
cd /tmp/ && \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -126,7 +126,7 @@ RUN set -eux && \
cp database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
cd /tmp/ && \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -126,7 +126,7 @@ RUN set -eux && \
cp database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
cd /tmp/ && \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -70,7 +70,7 @@ RUN set -eux && \
"/etc/snmp/snmptrapfmt.conf" && \
rm -rf /tmp/snmptrapfmt_1.14+nmu1ubuntu2.tar.gz && \
rm -rf /tmp/snmptrapfmt-1.14+nmu1ubuntu1/ && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -78,7 +78,7 @@ RUN set -eux && \
rm -f conf/zabbix.conf.php && \
rm -rf tests && \
./locale/make_mo.sh && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -77,7 +77,7 @@ RUN set -eux && \
rm -f conf/zabbix.conf.php && \
rm -rf tests && \
./locale/make_mo.sh && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -79,7 +79,7 @@ RUN set -eux && \
rm -f conf/zabbix.conf.php && \
rm -rf tests && \
./locale/make_mo.sh && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -78,7 +78,7 @@ RUN set -eux && \
rm -f conf/zabbix.conf.php && \
rm -rf tests && \
./locale/make_mo.sh && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -166,7 +166,7 @@ RUN set -eux && \
./locale/make_mo.sh && \
cd /tmp/ && \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
apk del ${APK_FLAGS_COMMON} --purge \
apk del ${APK_FLAGS_COMMON} --purge --no-network \
build-dependencies && \
rm -rf /var/cache/apk/*