Files
vulhub/base/cacti/1.2.28/Dockerfile
Aaron 63285f61aa
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
first commit
2025-09-06 16:08:15 +08:00

23 lines
887 B
Docker

FROM php:7.4-apache
LABEL maintainer="phithon <root@leavesongs.com>"
RUN set -ex \
&& apt-get update \
&& apt-get install -y --no-install-recommends rrdtool snmp wget ca-certificates libsnmp-dev default-mysql-client \
wait-for-it libjpeg62-turbo-dev libpng-dev libfreetype6-dev libgmp-dev libldap2-dev libicu-dev cron
RUN set -ex \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install pdo_mysql snmp gmp ldap sockets gd pcntl intl
RUN set -ex \
&& wget -qO- https://files.cacti.net/cacti/linux/cacti-1.2.28.tar.gz | tar zx -C /var/www/html --strip-components 1
COPY config.php /var/www/html/include/config.php
COPY cacti.ini /usr/local/etc/php/conf.d/cacti.ini
RUN set -ex \
&& chown www-data:www-data -R /var/www/html \
&& echo "* * * * * www-data php /var/www/html/poller.php &>/tmp/cron.log" >> /etc/crontab