From b9cab3fb882e23ef8e579afe4ffdd0464c17bd67 Mon Sep 17 00:00:00 2001 From: Bill Britt Date: Fri, 21 Sep 2018 09:00:05 -0700 Subject: [PATCH 1/3] adding dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a45961 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM php:5.6-apache + +COPY gennum.php subnets.html img/ /var/www/html/ From 829963dce5e39829af5d0525452d01281888146a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 21 Sep 2018 09:11:34 -0700 Subject: [PATCH 2/3] updating readme and fixing docker file copys --- Dockerfile | 3 ++- README.md | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 +``` From 7af2c164cb66fbc5ed853b92b7ff5bbaa17d59cc Mon Sep 17 00:00:00 2001 From: root Date: Fri, 21 Sep 2018 09:14:17 -0700 Subject: [PATCH 3/3] adding index.php to redirect to subnets.html --- Dockerfile | 2 +- index.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 index.php diff --git a/Dockerfile b/Dockerfile index 2fe0f80..f004593 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM php:5.6-apache -COPY gennum.php subnets.html /var/www/html/ +COPY index.php gennum.php subnets.html /var/www/html/ COPY img/* /var/www/html/img/ diff --git a/index.php b/index.php new file mode 100644 index 0000000..a5eb079 --- /dev/null +++ b/index.php @@ -0,0 +1,2 @@ +