Added caching / avoid orphans mechanisms

This commit is contained in:
Alexey Pustovalov
2024-02-20 17:24:36 +09:00
committed by Alexey Pustovalov
parent 98540bb254
commit 1719d95d05
94 changed files with 242 additions and 2272 deletions

View File

@ -29,7 +29,8 @@ STOPSIGNAL SIGTERM
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/ui", "/usr/share/zabbix"]
COPY ["conf/etc/", "/etc/"]
RUN set -eux && \
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
set -eux && \
REPOLIST="baseos,appstream,epel" && \
INSTALL_PKGS="bash \
curl \
@ -99,9 +100,7 @@ RUN set -eux && \
dnf -y remove \
findutils \
glibc-locale-source && \
dnf -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
dnf -y clean all
EXPOSE 8080/TCP 8443/TCP