mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 08:35:05 +02:00
Add verification for binary Zabbix components after installing dependencies
This commit is contained in:
@ -31,6 +31,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/ui", "/usr/share/zabbix"]
|
||||
COPY ["conf/etc/", "/etc/"]
|
||||
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--mount=type=tmpfs,target=/var/cache/yum/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
curl-minimal \
|
||||
@ -124,8 +125,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
chmod -R g=u /run/httpd/ /var/lib/php/session/ && \
|
||||
microdnf -y remove \
|
||||
findutils \
|
||||
glibc-locale-source && \
|
||||
microdnf -y clean all
|
||||
glibc-locale-source
|
||||
|
||||
EXPOSE 8080/TCP 8443/TCP
|
||||
|
||||
|
@ -32,6 +32,7 @@ COPY ["conf/etc/", "/etc/"]
|
||||
COPY ["conf/etc/yum.repos.d/oracle-epel-ol9.repo", "/etc/yum.repos.d/oracle-epel-ol9.repo"]
|
||||
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--mount=type=tmpfs,target=/var/cache/yum/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
curl \
|
||||
@ -111,8 +112,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
chmod -R g=u /run/httpd/ /var/lib/php/session/ && \
|
||||
microdnf -y remove \
|
||||
findutils \
|
||||
glibc-locale-source && \
|
||||
microdnf -y clean all
|
||||
glibc-locale-source
|
||||
|
||||
EXPOSE 8080/TCP 8443/TCP
|
||||
|
||||
|
@ -30,7 +30,8 @@ STOPSIGNAL SIGTERM
|
||||
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/ui", "/usr/share/zabbix"]
|
||||
COPY ["conf/etc/", "/etc/"]
|
||||
|
||||
RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \
|
||||
RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt/,sharing=locked \
|
||||
set -eux && \
|
||||
echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d && \
|
||||
INSTALL_PKGS="bash \
|
||||
@ -101,9 +102,7 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \
|
||||
chmod -R g=u ${ZABBIX_CONF_DIR}/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||
chown --quiet -R zabbix:root /etc/apache2/ /etc/php/8.3/ && \
|
||||
chgrp -R 0 /etc/apache2/ /etc/php/8.3/ && \
|
||||
chmod -R g=u /etc/apache2/ /etc/php/8.3/ && \
|
||||
apt-get -y autoremove && \
|
||||
apt-get -y clean
|
||||
chmod -R g=u /etc/apache2/ /etc/php/8.3/
|
||||
|
||||
EXPOSE 8080/TCP 8443/TCP
|
||||
|
||||
|
Reference in New Issue
Block a user