=> [16/18] RUN npm install -g yarn 6.9s
=> ERROR [17/18] RUN cd frontend && yarn install && yarn build 11.3s
------
> [17/18] RUN cd frontend && yarn install && yarn build:
0.770 yarn install v1.22.21
0.824 [1/4] Resolving packages...
0.917 [2/4] Fetching packages...
0.923 warning Pattern ["string-width@^4.1.0"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
7.783 [3/4] Linking dependencies...
11.05 [4/4] Building fresh packages...
11.17 error /workspace/frontend/node_modules/esbuild: Command failed.
11.17 Exit code: 1
11.17 Command: node install.js
11.17 Arguments:
11.17 Directory: /workspace/frontend/node_modules/esbuild
11.17 Output:
11.17 node:internal/errors:932
11.17 const err = new Error(message);
11.17 ^
11.17
11.17 Error: Command failed: /usr/bin/node /workspace/frontend/node_modules/esbuild/bin/esbuild --version
11.17 node:child_process:929
11.17 throw err;
11.17 ^
11.17
11.17 <ref *1> Error: spawnSync /workspace/frontend/node_modules/@esbuild/linux-x64/bin/esbuild ETXTBSY
11.17 at Object.spawnSync (node:internal/child_process:1124:20)
11.17 at spawnSync (node:child_process:876:24)
11.17 at Object.execFileSync (node:child_process:919:15)
11.17 at Object.<anonymous> (/workspace/frontend/node_modules/esbuild/bin/esbuild:221:28)
11.17 at Module._compile (node:internal/modules/cjs/loader:1376:14)
11.17 at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
11.17 at Module.load (node:internal/modules/cjs/loader:1207:32)
11.17 at Module._load (node:internal/modules/cjs/loader:1023:12)
11.17 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
11.17 at node:internal/main/run_main_module:28:49 {
11.17 errno: -26,
11.17 code: 'ETXTBSY',
11.17 syscall: 'spawnSync /workspace/frontend/node_modules/@esbuild/linux-x64/bin/esbuild',
11.17 path: '/workspace/frontend/node_modules/@esbuild/linux-x64/bin/esbuild',
11.17 spawnargs: [ '--version' ],
11.17 error: [Circular *1],
11.17 status: null,
11.17 signal: null,
11.17 output: null,
11.17 pid: 0,
11.17 stdout: null,
11.17 stderr: null
11.17 }
11.17
11.17 Node.js v20.11.0
11.17
11.17 at checkExecSyncError (node:child_process:890:11)
11.17 at Object.execFileSync (node:child_process:926:15)
11.17 at validateBinaryVersion (/workspace/frontend/node_modules/esbuild/install.js:99:28)
11.17 at /workspace/frontend/node_modules/esbuild/install.js:284:5 {
11.17 status: 1,
11.17 signal: null,
11.17 output: [
11.17 null,
11.17 Buffer(0) [Uint8Array] [],
11.17 Buffer(1157) [Uint8Array] [
11.17 110, 111, 100, 101, 58, 99, 104, 105, 108, 100, 95, 112,
11.17 114, 111, 99, 101, 115, 115, 58, 57, 50, 57, 10, 32,
11.17 32, 32, 32, 116, 104, 114, 111, 119, 32, 101, 114, 114,
11.17 59, 10, 32, 32, 32, 32, 94, 10, 10, 60, 114, 101,
11.17 102, 32, 42, 49, 62, 32, 69, 114, 114, 111, 114, 58,
11.17 32, 115, 112, 97, 119, 110, 83, 121, 110, 99, 32, 47,
11.17 119, 111, 114, 107, 115, 112, 97, 99, 101, 47, 102, 114,
11.17 111, 110, 116, 101, 110, 100, 47, 110, 111, 100, 101, 95,
11.17 109, 111, 100, 117,
11.17 ... 1057 more items
11.17 ]
11.17 ],
11.17 pid: 153,
11.17 stdout: Buffer(0) [Uint8Array] [],
11.17 stderr: Buffer(1157) [Uint8Array] [
11.17 110, 111, 100, 101, 58, 99, 104, 105, 108, 100, 95, 112,
11.17 114, 111, 99, 101, 115, 115, 58, 57, 50, 57, 10, 32,
11.17 32, 32, 32, 116, 104, 114, 111, 119, 32, 101, 114, 114,
11.17 59, 10, 32, 32, 32, 32, 94, 10, 10, 60, 114, 101,
11.17 102, 32, 42, 49, 62, 32, 69, 114, 114, 111, 114, 58,
11.17 32, 115, 112, 97, 119, 110, 83, 121, 110, 99, 32, 47,
11.17 119, 111, 114, 107, 115, 112, 97, 99, 101, 47, 102, 114,
11.17 111, 110, 116, 101, 110, 100, 47, 110, 111, 100, 101, 95,
11.17 109, 111, 100, 117,
11.17 ... 1057 more items
11.17 ]
11.17 }
11.17
11.17 Node.js v20.11.0
11.17 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
Dockerfile:61
--------------------
59 |
60 | # Install frontend dependencies and build it for production (into the frontend/dist folder)
61 | >>> RUN cd frontend && yarn install && yarn build
62 |
63 | # Container start script
--------------------
ERROR: failed to solve: process "/bin/sh -c cd frontend && yarn install && yarn build" did not complete successfully: exit code: 1