A generic docker image based on centos:7, Apache httpd, and php72
10K+
FROM centos:7
MAINTAINER Li Yi
RUN yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
RUN yum-config-manager --enable remi-php72
RUN yum install -y httpd
RUN yum -y install php72
RUN yum -y install php72-php-pecl-mysql php72-php-pecl-memcache
RUN yum -y install php72-php-pecl-http php72-php-odbc php72-php
RUN yum clean all
RUN sed -i 's/display_errors = Off/display_errors = On/g' /etc/opt/remi/php72/php.ini
RUN sed -i 's/memory_limit = 128M/memory_limit = 512M/g' /etc/opt/remi/php72/php.ini
RUN sed -i 's/;date.timezone =/date.timezone = America\/Los_Angeles/g' /etc/opt/remi/php72/php.ini
RUN rm -f /etc/localtime
RUN ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
WORKDIR /var/www/html
EXPOSE 80 443
HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD curl -f http://localhost || exit 1
CMD apachectl -D FOREGROUND
Content type
Image
Digest
Size
391.2 MB
Last updated
over 6 years ago
docker pull liyiberkeley/apache-php7