php7 and php8 images

This commit is contained in:
2020-12-10 17:18:29 +01:00
parent 944e68acff
commit e86e0ab0ef
4 changed files with 96 additions and 0 deletions

16
php-fpm/7/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM centos:7
RUN yum update -y
RUN yum install epel-release -y
RUN rpm -i https://rpms.remirepo.net/enterprise/remi-release-7.rpm
RUN yum install php74 php74-php-fpm php74-php-pdo php74-php-mysqlnd php74-php-bcmath php74-php-devel php74-php-gd php74-php-mbstring php74-php-pear php74-php-pecl-zip php74-php-xml -y
RUN yum clean all
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/opt/remi/php74/root/usr/sbin/php-fpm"]