diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f004593 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM php:5.6-apache + +COPY index.php gennum.php subnets.html /var/www/html/ +COPY img/* /var/www/html/img/ diff --git a/README.md b/README.md index a17716b..de6a984 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # subnets Visual subnet calculator as seen at http://www.davidc.net/sites/default/subnets/subnets.html + +# Run with docker + +``` +cd +docker build . -t subnets +docker run -d -p 5001:80 --name subnets subnets +``` diff --git a/index.php b/index.php new file mode 100644 index 0000000..a5eb079 --- /dev/null +++ b/index.php @@ -0,0 +1,2 @@ +