Docker can't access resources outside of the current build directory. This poses a problem if the serverless yaml is inside a workspace, and we want pull in other packages from the workspace. Such as:
Currently, member1 cannot use common as a dependency because of limitations to the folders accessible by docker.
This PR introduces the ability to programmatically configure docker so that we can build it from the workspace root, and allows member1 to depend on common.
Docker can't access resources outside of the current build directory. This poses a problem if the serverless yaml is inside a workspace, and we want pull in other packages from the workspace. Such as:
Currently,
member1
cannot usecommon
as a dependency because of limitations to the folders accessible by docker.This PR introduces the ability to programmatically configure docker so that we can build it from the workspace root, and allows
member1
to depend oncommon
.Can be configured in
serverless.yaml
via:credit to @danielharbor who made this with me