Error building n8n-custom docker image

Describe the issue/error/question

When I build the n8n-custom docker image, the build stage fail with the error :

> n8n@0.177.0 build
> run-script-os

sh: run-script-os: not found

When I go in the container (docker run -ti IMAGE_ID sh), I can conclude this is the cli package that failed with that error.
In the container, when I run “npm install && npm run build” in the packages/cli directory it works correctly.

Isn’t there a bug with the installation of the packages and the devDependencies (installed or not)?
How doing to build the n8n-custom docker image?

Hey @Vincent_FARION,

Welcome to the community :cupcake:

What OS are you trying to run the build on?

Here is my OS :

$ uname -a
Linux desktop 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux