cac (sha256:2b3bb2a1aa3f1aca38b8c707b5a04aa1b768a2ae0e0a53c6fd560a84d18c36ca)
Published 2025-08-13 14:47:41 +00:00 by whp-cicd-user in cloud-hosting-platform/cloud-apache-container
Installation
docker pull repo.anhonesthost.net/cloud-hosting-platform/cac@sha256:2b3bb2a1aa3f1aca38b8c707b5a04aa1b768a2ae0e0a53c6fd560a84d18c36ca
sha256:2b3bb2a1aa3f1aca38b8c707b5a04aa1b768a2ae0e0a53c6fd560a84d18c36ca
Image Layers
COPY / / # buildkit |
ENV LANG=C.utf8 |
CMD ["/bin/bash"] |
ARG PHPVER=84 |
RUN |1 PHPVER=84 /bin/sh -c dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://rpms.remirepo.net/enterprise/remi-release-9.rpm && dnf update -y && dnf install -y httpd mod_ssl wget procps cronie iproute postgresql-devel microdnf less git nano rsync unzip zip mariadb bind-utils jq patch nc tree dos2unix && dnf clean all && rm -rf /var/cache/dnf /usr/share/doc /usr/share/man /usr/share/locale/* # buildkit |
COPY ./scripts/ /scripts/ # buildkit |
RUN |1 PHPVER=84 /bin/sh -c chmod +x /scripts/* # buildkit |
RUN |1 PHPVER=84 /bin/sh -c openssl req -newkey rsa:2048 -nodes -keyout /etc/pki/tls/private/localhost.key -x509 -days 3650 -subj "/CN=localhost" -out /etc/pki/tls/certs/localhost.crt && mkdir -p /run/php-fpm/ && /scripts/install-php$PHPVER.sh && rm -rf /tmp/* # buildkit |
RUN |1 PHPVER=84 /bin/sh -c curl -L -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x /usr/local/bin/wp # buildkit |
RUN |1 PHPVER=84 /bin/sh -c curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && chmod +x /usr/local/bin/composer # buildkit |
COPY ./configs/default-index.conf /etc/httpd/conf.d/ # buildkit |
COPY ./configs/prod-php.ini /etc/php.ini # buildkit |
COPY ./configs/phpinfo.php /var/www/html/ # buildkit |
COPY ./configs/mariadb.repo /etc/yum.repos.d/ # buildkit |
COPY ./configs/index.php /var/www/html/ # buildkit |
COPY ./configs/remote_ip.conf /etc/httpd/conf.d/ # buildkit |
RUN |1 PHPVER=84 /bin/sh -c echo "15 */12 * * * root /scripts/log-rotate.sh" >> /etc/crontab # buildkit |
HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost/ || exit 1"] "30s" "5s" "1m0s" "0s" '\x03'} |
ENTRYPOINT ["/scripts/entrypoint.sh"] |