diff --git a/Dockerfile b/Dockerfile index 30800bf8..32d9bf66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,3 +2,5 @@ FROM ocaml/opam RUN opam pin add -n ocl-reporter https://github.com/ocamllabs/ocl-reporter.git RUN opam depext -ui ocl-reporter RUN opam install -j 2 -y -v ocl-reporter +RUN mkdir /home/opam/src +CMD ["sh","-c","ocl-reporter && make www"] diff --git a/README.md b/README.md index e5854697..b08b5324 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,10 @@ more general purpose reporting tool for other projects too. * A cron job runs every hour on `cron-serv0.cl.cam.ac.uk` to sync the contents of `pages/` with the live directory. That server doesnt run any code, so it just runs the `make cron` target to rsync files. + +## Docker build + +``` +docker build -t ocl-reporter . +docker run -v `pwd`:/home/opam/src +```