diff --git a/Dockerfile b/Dockerfile index 0a45961..2fe0f80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ FROM php:5.6-apache -COPY gennum.php subnets.html img/ /var/www/html/ +COPY 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 +```