COPY / / # buildkit |
ENV LANG=C.utf8 |
CMD ["/bin/bash"] |
ARG PHPVER=81 |
RUN |1 PHPVER=81 /bin/sh -c dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y # buildkit |
RUN |1 PHPVER=81 /bin/sh -c dnf install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm # buildkit |
RUN |1 PHPVER=81 /bin/sh -c dnf update -y && dnf upgrade -y # buildkit |
RUN |1 PHPVER=81 /bin/sh -c dnf install -y httpd mod_ssl wget procps cronie # buildkit |
RUN |1 PHPVER=81 /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 # buildkit |
RUN |1 PHPVER=81 /bin/sh -c mkdir /run/php-fpm/ # buildkit |
RUN |1 PHPVER=81 /bin/sh -c mkdir /scripts # buildkit |
COPY ./scripts/* /scripts/ # buildkit |
RUN |1 PHPVER=81 /bin/sh -c chmod +x /scripts/* # buildkit |
RUN |1 PHPVER=81 /bin/sh -c curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar # buildkit |
RUN |1 PHPVER=81 /bin/sh -c chmod +x wp-cli.phar # buildkit |
RUN |1 PHPVER=81 /bin/sh -c mv wp-cli.phar /usr/local/bin/wp # 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 |
RUN |1 PHPVER=81 /bin/sh -c echo "15 */12 * * * root /scripts/log-rotate.sh" >> /etc/crontab # buildkit |
RUN |1 PHPVER=81 /bin/sh -c yum clean all # buildkit |
ENTRYPOINT ["/scripts/entrypoint.sh"] |