Merge pull request #2 from wcbzero/feature/docker

Feature/docker
This commit is contained in:
davidc 2018-10-26 13:04:42 +01:00 committed by GitHub
commit e1884a5d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

4
Dockerfile Normal file
View File

@ -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/

View File

@ -1,2 +1,10 @@
# subnets # subnets
Visual subnet calculator as seen at http://www.davidc.net/sites/default/subnets/subnets.html Visual subnet calculator as seen at http://www.davidc.net/sites/default/subnets/subnets.html
# Run with docker
```
cd <project folder>
docker build . -t subnets
docker run -d -p 5001:80 --name subnets subnets
```

2
index.php Normal file
View File

@ -0,0 +1,2 @@
<?php
header("Location: subnets.html");