RUN cat /proc/sys/fs/inotify/max_user_watches
524288
8192
См. https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details для справки.
Google Cloud Build запускает докер-контейнеры в привилегированном режиме, так что вы можете просто добавить этот шаг в cloudbuild.yaml.
cloudbuild.yaml
- name: 'ubuntu' args: ['sh', '-c', 'sysctl fs.inotify.max_user_watches=524288']