Public Repository

Last pushed: 5 months ago
Short Description
docker run -d -t --name jason1418/httpd:v1 -p 8080:80
Full Description

#OS
FROM centos:latest

#Maintainer
MAINTAINER jason1418@gmail.com

#Application update and install
RUN yum -y update
RUN yum -y install httpd
RUN yum -y install vim net-tools
RUN yum -y install php-mysql php

#RUN yum -y install mariadb-server mariadb telnet

WORKDIR /var/www/html
RUN echo 'This is a test page.' > index.php

CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"]

--ref
https://writing.pupius.co.uk/apache-and-php-on-docker-44faef716150

也可使用-v連結本地網頁
docker run -d -t -p 8081:80 -v /tmp/jason/html /var/www/html jason1418/httpd

Docker Pull Command
Owner
jason1418