### A Dockerfile for a simple web server based on the Fedora image. # A Fedora image with an Apache web server on port 8080 # Version 1 # The fedora image serves as the base FROM fedora # Enter your name here MAINTAINER Thorsten Scherf # The image should include the last Fedora updates RUN yum update -y # Install the actual web server here RUN yum install httpd -y # Create a time index.html within the container this time RUN bash -c 'echo "Hello again..." > /var/www/html/index.html' # The web server port 80 should be accessible externally EXPOSE 80 # Finally, the web server should start automatically ENTRYPOINT [ "/usr/sbin/httpd" ] CMD [ "-D", "FOREGROUND" ]