Centos 7 + Apache + PHP 7 For building image from Dockerfile docker build --rm --no-cache -t httpd .
docker run --privileged --name httpd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -d taraskindrat/httpd:latest
Dockerfile:
FROM centos/systemd
MAINTAINER "Your Name" [email protected]
RUN yum -y install httpd; yum clean all; yum -y install php; systemctl enable httpd.service
ADD ./info.php /var/www/html
EXPOSE 80
ENTRYPOINT ["/usr/sbin/init"]
CMD ["systemctl"]
Content type
Image
Digest
Size
130.4 MB
Last updated
over 7 years ago
docker pull taraskindrat/httpd