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=cache,target=/var/lib/apt/,sharing=locked \
set -eux && \
echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d && \
INSTALL_PKGS="bash \
ca-certificates \
@ -125,8 +126,7 @@ RUN set -eux && \
dirmngr \
gpg-agent && \
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*
apt-get -y clean
EXPOSE 8080/TCP 8443/TCP