The workspace is a docker volume that is mounted inside your container therefore must be an absolute path. The workspace is explained in detail here; and the documentation includes example Docker commands to illustrate exactly how it works.
In terms of the other examples you provided, I am not sure I understand well enough to comment yet. It would be helpful to clarify what “anything else” refers to. Can you provide some example configurations to augment these statements?