Describe the issue/error/question
I have problems building an n8n docker image with the dockerfile. Running the dockerfile fails with this errormessage:
What is the error message (if any)?
Alexanders-MacBook-Pro:n8n alex$ docker build -t n8n_cust -f docker/images/n8n-custom/Dockerfile .
[+] Building 5.5s (14/26)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 120B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/n8nio/base:16 0.5s
=> [internal] load build context 0.5s
=> => transferring context: 846.12kB 0.5s
=> CACHED [stage-1 1/5] FROM docker.io/n8nio/base:[email protected]:5ed0cee768089444ab0f77efb75323b5455185c542253a8b885a8c16b926fc9b 0.0s
=> CACHED [builder 2/18] COPY turbo.json package.json .npmrc pnpm-lock.yaml pnpm-workspace.yaml tsconfig.json ./ 0.0s
=> CACHED [builder 3/18] COPY scripts ./scripts 0.0s
=> CACHED [builder 4/18] COPY packages ./packages 0.0s
=> CACHED [builder 5/18] COPY patches ./patches 0.0s
=> CACHED [builder 6/18] RUN apk add --update libc6-compat jq 0.0s
=> CACHED [builder 7/18] RUN corepack enable && corepack prepare --activate 0.0s
=> CACHED [builder 8/18] RUN chown -R node:node . 0.0s
=> CACHED [builder 9/18] RUN pnpm install --frozen-lockfile 0.0s
=> ERROR [builder 10/18] RUN pnpm build 4.3s
------
> [builder 10/18] RUN pnpm build:
#14 1.833
#14 1.833 > [email protected] build /home/node
#14 1.833 > turbo run build
#14 1.833
#14 2.354 WARNING cannot find a .git folder. Falling back to manual file hashing (which may be slower). If you are running this build in a pruned directory, you can ignore this message. Otherwise, please initialize a git repository in the root of your monorepo
#14 2.605 • Packages in scope: @n8n_io/eslint-config, n8n, n8n-core, n8n-design-system, n8n-editor-ui, n8n-node-dev, n8n-nodes-base, n8n-workflow
#14 2.605 • Running build in 8 packages
#14 2.605 • Remote caching disabled
#14 2.607 n8n-design-system:build: cache miss, executing 1d64579158a23b67
#14 2.607 n8n-workflow:build: cache miss, executing fa92c54a6ec3f4bc
#14 4.067 n8n-design-system:build:
#14 4.067 n8n-design-system:build: > [email protected] build /home/node/packages/design-system
#14 4.067 n8n-design-system:build: > vite build
#14 4.067 n8n-design-system:build:
#14 4.071 n8n-workflow:build:
#14 4.071 n8n-workflow:build: > [email protected] build /home/node/packages/workflow
#14 4.071 n8n-workflow:build: > tsc -p tsconfig.build.json
#14 4.071 n8n-workflow:build:
#14 4.081 n8n-workflow:build: sh: tsc: not found
#14 4.095 n8n-workflow:build: ELIFECYCLE Command failed.
#14 4.134 n8n-workflow:build: ERROR: command finished with error: command (/home/node/packages/workflow) pnpm run build exited (1)
#14 4.145 n8n-design-system:build: ELIFECYCLE Command failed.
#14 4.164
#14 4.164 Tasks: 0 successful, 1 total
#14 4.164 Cached: 0 cached, 1 total
#14 4.164 Time: 2.087s
#14 4.164
#14 4.164 command (/home/node/packages/workflow) pnpm run build exited (1)
#14 4.165 ERROR run failed: command exited (1)
#14 4.192 ELIFECYCLE Command failed with exit code 1.
------```
## Information on your n8n setup
- **n8n version: 0.217.2
- **Database you're using (default: SQLite): sqlite
- **Running n8n with the execution process [own(default), main]:**
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:**
Can you please help me what I'am missing here? Thanks!