Using docker and package.patterns in serverless.yml

I’m wondering if does make any sense to have package.patterns in my serverless.yml with Docker.

Serverless Framework Guide - AWS Lambda Guide - Packaging does not say anything about it.

Better yet would be a warning when deploying to let us know of unnecessary entries.