diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..7f06715 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ + +To build the docker images: + + docker build -t alpine-darkhttpd alpine-darkhttpd/ + docker build -t alpine-mksite alpine-mksite/ + +The images are supposed to share a mount named www/ where we have the following dirs: + +- www/tmp: work directory where git repository is checked out +- www/log: where darkhttpd store the logs +- www/htdocs: where the generated pages are copied for darkhttpd + +To create and run an instance of the images. Use -v option to mount $PWD/www +to /www inside the container: + + docker run --name alpine-wwwbuild -v $PWD/www:/www alpine-mksite + docker run --name alpine-www -p 80:80 -v $PWD/www:/www alpine-darkhttpd + + |