N8n-custom Docker fails to build

Describe the issue/error/question

The docker/images/n8n-custom/Dockerfile is failing to build in WSL (Ubuntu 20) with Windows Docker Desktop.

What is the error message (if any)?

**
**[email protected]:~/n8n$ docker build -t n8n-custom -f docker/images/n8n-custom/Dockerfile .
[+] Building 207.0s (24/27)                                                
 => [internal] load build definition from Dockerfile                  0.1s
 => => transferring dockerfile: 38B                                   0.0s
 => [internal] load .dockerignore                                     0.1s
 => => transferring context: 34B                                      0.0s
 => [internal] load metadata for docker.io/library/node:16-alpine    13.0s
 => [auth] library/node:pull token for registry-1.docker.io           0.0s
 => [builder  1/16] FROM docker.io/library/node:[email protected]:da3  0.0s
 => [internal] load build context                                     0.4s
 => => transferring context: 293.16kB                                 0.4s
 => CACHED [stage-1 2/7] RUN apk add --update graphicsmagick tzdata   0.0s
 => CACHED [stage-1 3/7] WORKDIR /data                                0.0s
 => CACHED [stage-1 4/7] RUN npm_config_user=root npm install -g ful  0.0s
 => CANCELED [stage-1 5/7] RUN apk --no-cache add --virtual fonts   193.8s
 => CACHED [builder  2/16] RUN apk --update add --virtual build-depe  0.0s
 => CACHED [builder  3/16] WORKDIR /data                              0.0s
 => CACHED [builder  4/16] COPY lerna.json .                          0.0s
 => CACHED [builder  5/16] COPY package.json .                        0.0s
 => CACHED [builder  6/16] COPY packages/cli/ ./packages/cli/         0.0s
 => CACHED [builder  7/16] COPY packages/core/ ./packages/core/       0.0s
 => CACHED [builder  8/16] COPY packages/design-system/ ./packages/d  0.0s
 => CACHED [builder  9/16] COPY packages/editor-ui/ ./packages/edito  0.0s
 => CACHED [builder 10/16] COPY packages/nodes-base/ ./packages/node  0.0s
 => CACHED [builder 11/16] COPY packages/workflow/ ./packages/workfl  0.0s
 => CACHED [builder 12/16] RUN rm -rf node_modules packages/*/node_m  0.0s
 => CACHED [builder 13/16] RUN npm config set legacy-peer-deps true   0.0s
 => CACHED [builder 14/16] RUN npm install --production --loglevel n  0.0s
 => ERROR [builder 15/16] RUN lerna bootstrap --hoist -- --product  193.2s
------                                                                     
 > [builder 15/16] RUN lerna bootstrap --hoist -- --production:            
#24 2.342 lerna notice cli v5.2.0
#24 2.344 lerna info versioning independent
#24 2.432 lerna info Bootstrapping 6 packages
#24 2.466 lerna WARN EHOIST_PKG_VERSION "n8n-workflow" package depends on [email protected]^7.32.0, which differs from the hoisted [email protected]^8.0.0.
#24 2.501 lerna info Installing external dependencies
#24 2.502 lerna info hoist Installing hoisted dependencies into root
#24 2.508 lerna info hoist Pruning hoisted dependencies
#24 2.564 lerna info hoist Finished pruning hoisted dependencies
#24 193.1 lerna ERR! npm install --production exited undefined in 'n8n'
#24 193.1 lerna ERR! npm install --production stderr:
#24 193.1 npm WARN config production Use `--omit=dev` instead.
#24 193.1 lerna ERR! npm install --production exited undefined in 'n8n'
------
executor failed running [/bin/sh -c lerna bootstrap --hoist -- --production]: exit code: 1

Please share the workflow

N/A

Share the output returned by the last node

N/A

Information on your n8n setup

  • n8n version: GIT COMMIT 02549e3ba9233a6d9f75fc1f9ff138e2aff7f4b9
  • Database you’re using (default: SQLite): SQLite
  • Running n8n with the execution process [own(default), main]: Own
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker

Hey @mwatermolen,

Do you happen to have the docker log file?

Hey @jon

How would I go about getting that file?