Dockerfile
FROM centos:centos7 RUN yum install -y httpd COPY . /var/www/html/ EXPOSE 80 CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"]
※EXPOSE 80で80番ポートを開ける
※
$ sudo docker build -t mycentos .
$ sudo docker run -dit –name myapp -p 8080:80 mycentos
apache, nginxに比べると、若干複雑になるね