mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 00:24:58 +02:00
Added caching / avoid orphans mechanisms
This commit is contained in:
@ -48,7 +48,8 @@ COPY ["licenses", "/licenses"]
|
||||
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/bin", "/usr/sbin/zabbix_java/bin"]
|
||||
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib", "/usr/sbin/zabbix_java/lib"]
|
||||
|
||||
RUN set -eux && \
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
findutils \
|
||||
shadow-utils \
|
||||
@ -58,6 +59,7 @@ RUN set -eux && \
|
||||
--enablerepo "ubi-8-baseos-rpms" \
|
||||
--enablerepo "ubi-8-appstream-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--setopt=keepcache=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
@ -81,9 +83,7 @@ RUN set -eux && \
|
||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/sbin/zabbix_java/ && \
|
||||
chgrp -R 0 /etc/zabbix/ /usr/sbin/zabbix_java/ && \
|
||||
chmod -R g=u /etc/zabbix/ /usr/sbin/zabbix_java/ && \
|
||||
microdnf -y clean all && \
|
||||
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \
|
||||
rm -rf /var/cache/dnf /etc/udev/hwdb.bin /root/.pki
|
||||
microdnf -y clean all
|
||||
|
||||
EXPOSE 10052/TCP
|
||||
|
||||
|
Reference in New Issue
Block a user