| COPY / / # buildkit |
| ENV LANG=C.utf8 |
| CMD ["/bin/bash"] |
| ARG PHPVER=85 |
| RUN |1 PHPVER=85 /bin/sh -c dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm https://rpms.remirepo.net/enterprise/remi-release-10.rpm && dnf update -y && dnf install -y openssl wget procps cronie iproute postgresql-devel microdnf less git nano rsync unzip zip mariadb bind-utils jq patch nc tree dos2unix fcgi && 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=85 /bin/sh -c chmod +x /scripts/* # buildkit |
| RUN |1 PHPVER=85 /bin/sh -c dnf install -y ImageMagick ImageMagick-libs ImageMagick-heic && dnf clean all # buildkit |
| RUN |1 PHPVER=85 /bin/sh -c mkdir -p /run/php-fpm/ && /scripts/install-php$PHPVER.sh && rm -rf /tmp/* # buildkit |
| RUN |1 PHPVER=85 /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=85 /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/prod-php.ini /etc/php.ini # buildkit |
| COPY ./configs/mariadb.repo /etc/yum.repos.d/ # buildkit |
| RUN |1 PHPVER=85 /bin/sh -c echo "15 */12 * * * root /scripts/log-rotate.sh" >> /etc/crontab # buildkit |
| EXPOSE [9000/tcp] |
| HEALTHCHECK &{["CMD-SHELL" "SCRIPT_FILENAME=/fpm-ping SCRIPT_NAME=/fpm-ping REQUEST_METHOD=GET cgi-fcgi -bind -connect 127.0.0.1:9000 | grep -q pong || exit 1"] "30s" "5s" "1m0s" "0s" '\x03'} |
| ENTRYPOINT ["/scripts/entrypoint-fpm.sh"] |