Dockerfile 1.4 supports multiple build contexts - a way to specify them when building in compose would be great
I'd suggest something like:
services:
myapp:
build:
contexts:
additional: ../foo
deps: https://github.com/myvendor/deps
dist: https://somedistro.info/download/latest.tar.gz
Being able to drive this from environment / .env could be very powerful