Docker Build from compose using a Dockerfile from Host?

The error message says it all: either Portainer itself or the docker sdk version it uses does not allow the build property.

This is clearly an issue with Portainer, and should be addressed to its maintainers.