aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 7f06715029681f361db7553b4f37fd8f01a306b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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