1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
FROM startx/fedora MAINTAINER Christophe LARUE <dev@startx.fr> COPY apache_run.sh /bin/ RUN yum -y install httpd \ && yum clean all \ && mkdir -p /var/www/html \ && mkdir -p /var/log/httpd \ && chmod ug+rx /bin/apache_* COPY welcome.html /var/www/html/index.html EXPOSE 80 EXPOSE 443 CMD ["/bin/apache_run.sh"] ONBUILD CMD ["/bin/apache_run.sh"]