About
The automated build docker Apache web server image “linuxconfig/nginx” can be used as for an instant deployments of static HTML websites.
Configuration
The image is build based on default Apache2 web server configuration running on Debian GNU/Linux. The deployed container runs apache2 web server in foreground exposes port 80.
Usage
create and put your static website into a eg. html
directory:
$ mkdir html $ echo "Apache web server docker container" > html/index.html
Next, deploy your docker container:
$ sudo docker run -d -p 80:80 -v $PWD/html:/var/www/html/ linuxconfig/apache b4d05146e56d9bf379d5a1c8fd08ec5b5b56b597c57f293f1b2607819be045e9
Use your browser or command line to access your HTML static website:
$ curl -i localhost HTTP/1.1 200 OK Date: Tue, 12 May 2015 05:41:34 GMT Server: Apache/2.4.10 (Debian) Last-Modified: Tue, 12 May 2015 05:37:49 GMT ETag: "23-515dbe5227326" Accept-Ranges: bytes Content-Length: 35 Content-Type: text/html Apache web server docker container