COPY / / # buildkit |
ENV LANG=C.utf8 |
CMD ["/bin/bash"] |
ARG PHPVER=81 |
RUN |1 PHPVER=81 /bin/sh -c dnf update -y && dnf upgrade -y # buildkit |
RUN |1 PHPVER=81 /bin/sh -c dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y # buildkit |
RUN |1 PHPVER=81 /bin/sh -c dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.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 memcached nginx wget procps # buildkit |
RUN |1 PHPVER=81 /bin/sh -c mv /etc/nginx/nginx.conf /etc/nginx/nginx.bak # buildkit |
COPY ./configs/nginx-default.conf /etc/nginx/nginx.conf # 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 /scripts/install-php$PHPVER.sh # 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/prod-php.ini /etc/php.ini # buildkit |
COPY ./configs/mariadb.repo /etc/yum.repos.d/ # buildkit |
RUN |1 PHPVER=81 /bin/sh -c yum clean all # buildkit |
ENTRYPOINT ["/scripts/entrypoint.sh"] |