Thanks for the swift reply. I think we are getting closer.
I gave up with the "sister-directory" approach and put the workspace below the examples directory.
docker run --publish=8080:8080 --name openjscad -v /Users/wf/source/docker/docker-openjscad/workspace:/openjscad/packages/web/examples/workspace bitplan/openjscad:latest
works and mounts my workspace directory to the docker container. I have added a sample workspace now to https://github.com/BITPlan/docker-openjscad/tree/master/workspace
now leads to the error:
ReferenceError: Box is not defined
which is a pity since it would be exactly my expectation for an include command to really include another source as if it would be part of the source that I am editing.
For the "official" example from the wiki i have fixed the include statement (both in the wiki as well as in the dockerization github workspace).
I also tried to follow your hint of adding a myLib() call. The result is:
TypeError: myLib(...) is undefined
So I think we only need one of your working examples and we'd be all set to improve the documentation and file a few issues / change requests.
The general principle works with the docker approach and probably also if you include OpenJSCAD in a local browser installation.