Plugin only in production

Is there a way to create a plugin that executes a patch only in production?

Example
I have a plugin that executes a patch using the openedx-dockerfile, but I don’t want this to happen when I run tutor in my local machine or in dev mode.

Can I check for properties of the config.yml in the plugin scope?

Answer here: Plugins API