pingcap/ossinsight

API server Dockerfile build issue

karanveersingh5623 opened this issue · 3 comments

Bug Report

Describe the bug

api server docker image build issue , refer url below
https://github.com/pingcap/ossinsight/blob/main/packages/api-server/Dockerfile

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

(base) Mac-Pro:api-server karan$ docker build -t oss-api .
[+] Building 86.0s (13/21)                                                                                                                                                                                                                                                    
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 997B                                                                                                                                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                          0.0s
 => [internal] load metadata for docker.io/library/node:18-alpine                                                                                                                                                                                                        2.2s
 => [internal] load build context                                                                                                                                                                                                                                        0.1s
 => => transferring context: 69.39kB                                                                                                                                                                                                                                     0.1s
 => CACHED [builder 1/14] FROM docker.io/library/node:18-alpine@sha256:0085670310d2879621f96a4216c893f92e2ded827e9e6ef8437672e1bd72f437                                                                                                                                  0.0s
 => CACHED [runtime 2/4] WORKDIR /app/packages/api-server                                                                                                                                                                                                                0.0s
 => [builder 2/14] RUN apk --no-cache add python3 python3-dev py3-pip build-base pixman-dev                                                                                                                                                                             17.5s
 => [builder 3/14] RUN apk add --no-cache build-base cairo-dev pango-dev jpeg-dev giflib-dev librsvg-dev g++                                                                                                                                                            12.1s
 => [builder 4/14] WORKDIR /app/packages/api-server                                                                                                                                                                                                                      0.0s 
 => [builder 5/14] RUN npm install -g npm                                                                                                                                                                                                                                9.6s 
 => [builder 6/14] RUN npm install -g pnpm                                                                                                                                                                                                                               3.7s 
 => [builder 7/14] COPY pnpm-lock.yaml package.json ./                                                                                                                                                                                                                   0.0s 
 => ERROR [builder 8/14] RUN pnpm fetch                                                                                                                                                                                                                                 40.8s 
------                                                                                                                                                                                                                                                                        
 > [builder 8/14] RUN pnpm fetch:                                                                                                                                                                                                                                             
#13 1.612 Importing packages to virtual store                                                                                                                                                                                                                                 
#13 1.708 Already up to date                                                                                                                                                                                                                                                  
#13 1.840 Progress: resolved 1, reused 0, downloaded 0, added 0                                                                                                                                                                                                               
#13 2.844 Progress: resolved 1296, reused 0, downloaded 0, added 0                                                                                                                                                                                                            
#13 3.845 Progress: resolved 1296, reused 0, downloaded 94, added 89
#13 4.846 Progress: resolved 1296, reused 0, downloaded 164, added 163
#13 5.847 Progress: resolved 1296, reused 0, downloaded 265, added 265
#13 6.848 Progress: resolved 1296, reused 0, downloaded 316, added 316
#13 7.852 Progress: resolved 1296, reused 0, downloaded 350, added 346
#13 8.859 Progress: resolved 1296, reused 0, downloaded 466, added 465
#13 9.860 Progress: resolved 1296, reused 0, downloaded 528, added 529
#13 10.86 Progress: resolved 1296, reused 0, downloaded 642, added 642
#13 11.86 Progress: resolved 1296, reused 0, downloaded 741, added 742
#13 12.86 Progress: resolved 1296, reused 0, downloaded 785, added 786
#13 13.86 Progress: resolved 1296, reused 0, downloaded 831, added 831
#13 14.86 Progress: resolved 1296, reused 0, downloaded 893, added 894
#13 15.86 Progress: resolved 1296, reused 0, downloaded 956, added 956
#13 16.86 Progress: resolved 1296, reused 0, downloaded 978, added 979
#13 17.86 Progress: resolved 1296, reused 0, downloaded 1011, added 1009
#13 18.83 Progress: resolved 1296, reused 0, downloaded 1069, added 1061
#13 19.83 Progress: resolved 1296, reused 0, downloaded 1142, added 1142
#13 20.83 Progress: resolved 1296, reused 0, downloaded 1183, added 1179
#13 21.83 Progress: resolved 1296, reused 0, downloaded 1202, added 1202
#13 22.83 Progress: resolved 1296, reused 0, downloaded 1240, added 1240
#13 23.84 Progress: resolved 1296, reused 0, downloaded 1294, added 1294
#13 24.39 Progress: resolved 1296, reused 0, downloaded 1295, added 1296, done
#13 25.90 .../es5-ext@0.10.62/node_modules/es5-ext postinstall$  node -e "try{require('./_postinstall')}catch(e){}" || exit 0
#13 25.95 .../node_modules/bufferutil install$ node-gyp-build
#13 25.95 .../node_modules/utf-8-validate install$ node-gyp-build
#13 26.10 .../core-js@3.31.0/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
#13 26.12 .../es5-ext@0.10.62/node_modules/es5-ext postinstall: Done
#13 26.15 .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js
#13 26.26 .../core-js@3.31.0/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
#13 26.26 .../core-js@3.31.0/node_modules/core-js postinstall: The project needs your help! Please consider supporting core-js:
#13 26.27 .../core-js@3.31.0/node_modules/core-js postinstall: > https://opencollective.com/core-js 
#13 26.27 .../core-js@3.31.0/node_modules/core-js postinstall: > https://patreon.com/zloirock 
#13 26.28 .../core-js@3.31.0/node_modules/core-js postinstall: > https://boosty.to/zloirock 
#13 26.28 .../core-js@3.31.0/node_modules/core-js postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz 
#13 26.28 .../core-js@3.31.0/node_modules/core-js postinstall: I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md 
#13 26.28 .../core-js@3.31.0/node_modules/core-js postinstall: Done
#13 26.43 .../node_modules/utf-8-validate install: Done
#13 26.44 .../node_modules/bufferutil install: Done
#13 26.46 .../node_modules/bcrypt install$ node-pre-gyp install --fallback-to-build
#13 26.50 .../core-js@2.6.12/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
#13 26.61 .../core-js@2.6.12/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
#13 26.61 .../core-js@2.6.12/node_modules/core-js postinstall: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
#13 26.61 .../core-js@2.6.12/node_modules/core-js postinstall: > https://opencollective.com/core-js 
#13 26.61 .../core-js@2.6.12/node_modules/core-js postinstall: > https://www.patreon.com/zloirock 
#13 26.61 .../core-js@2.6.12/node_modules/core-js postinstall: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
#13 26.63 .../core-js@2.6.12/node_modules/core-js postinstall: Done
#13 26.78 .../node_modules/bcrypt install: node-pre-gyp info it worked if it ends with ok
#13 26.78 .../node_modules/bcrypt install: node-pre-gyp info using node-pre-gyp@1.0.10
#13 26.79 .../node_modules/bcrypt install: node-pre-gyp info using node@18.19.0 | linux | x64
#13 26.89 .../node_modules/fast-folder-size postinstall$ node get-sysinternals-du.js
#13 27.07 .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js
#13 27.09 .../node_modules/bcrypt install: node-pre-gyp info check checked for "/app/packages/api-server/node_modules/.pnpm/bcrypt@5.1.0_encoding@0.1.13/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" (not found)
#13 27.09 .../node_modules/bcrypt install: node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.0/bcrypt_lib-v5.1.0-napi-v3-linux-x64-musl.tar.gz
#13 27.38 .../node_modules/fast-folder-size postinstall: Done
#13 28.98 .../node_modules/bcrypt install: node-pre-gyp info install unpacking napi-v3/bcrypt_lib.node
#13 29.05 .../node_modules/bcrypt install: node-pre-gyp info extracted file count: 1 
#13 29.05 .../node_modules/bcrypt install: [bcrypt] Success: "/app/packages/api-server/node_modules/.pnpm/bcrypt@5.1.0_encoding@0.1.13/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" is installed via remote
#13 29.05 .../node_modules/bcrypt install: node-pre-gyp info ok 
#13 29.08 .../node_modules/bcrypt install: Done
#13 29.10 .../node_modules/@prisma/engines postinstall: Done
#13 30.73 .../node_modules/@prisma/engines postinstall: Done
#13 31.30 .../node_modules/cpu-features install$ node buildcheck.js > buildcheck.gypi && node-gyp rebuild
#13 31.35 .../node_modules/msgpackr-extract install$ node-gyp-build-optional-packages
#13 31.39 .../node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary
#13 31.43 .../esbuild@0.15.18/node_modules/esbuild postinstall$ node install.js
#13 31.51 .../prisma@4.16.2/node_modules/prisma preinstall$ node scripts/preinstall-entry.js
#13 31.67 .../esbuild@0.15.18/node_modules/esbuild postinstall: Done
#13 31.67 .../node_modules/msgpackr-extract install: Done
#13 31.69 .../node_modules/canvas install: node-pre-gyp info it worked if it ends with ok
#13 31.69 .../node_modules/canvas install: node-pre-gyp info using node-pre-gyp@1.0.10
#13 31.69 .../node_modules/canvas install: node-pre-gyp info using node@18.19.0 | linux | x64
#13 31.82 .../prisma@4.16.2/node_modules/prisma preinstall: Done
#13 31.83 .../prisma@5.3.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js
#13 31.93 .../node_modules/canvas install: node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-x64.tar.gz
#13 31.97 .../prisma@5.3.1/node_modules/prisma preinstall: Done
#13 32.17 .../node_modules/cpu-features install: gyp info it worked if it ends with ok
#13 32.17 .../node_modules/cpu-features install: gyp info using node-gyp@9.4.1
#13 32.17 .../node_modules/cpu-features install: gyp info using node@18.19.0 | linux | x64
#13 32.40 .../node_modules/cpu-features install: gyp info find Python using Python version 3.11.6 found at "/usr/bin/python3"
#13 32.43 .../node_modules/canvas install: node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-x64.tar.gz 
#13 32.43 .../node_modules/canvas install: node-pre-gyp WARN Pre-built binaries not installable for canvas@2.11.2 and node@18.19.0 (node-v108 ABI, musl) (falling back to source compile with node-gyp) 
#13 32.43 .../node_modules/canvas install: node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-x64.tar.gz 
#13 32.61 .../node_modules/canvas install: gyp info it worked if it ends with ok
#13 32.61 .../node_modules/canvas install: gyp info using node-gyp@9.4.1
#13 32.61 .../node_modules/canvas install: gyp info using node@18.19.0 | linux | x64
#13 32.65 .../node_modules/canvas install: gyp info ok 
#13 32.75 .../node_modules/cpu-features install: gyp http GET https://unofficial-builds.nodejs.org/download/release/v18.19.0/node-v18.19.0-headers.tar.gz
#13 32.84 .../node_modules/canvas install: gyp info it worked if it ends with ok
#13 32.85 .../node_modules/canvas install: gyp info using node-gyp@9.4.1
#13 32.85 .../node_modules/canvas install: gyp info using node@18.19.0 | linux | x64
#13 32.98 .../node_modules/canvas install: gyp info find Python using Python version 3.11.6 found at "/usr/bin/python3"
#13 33.23 .../node_modules/canvas install: gyp http GET https://unofficial-builds.nodejs.org/download/release/v18.19.0/node-v18.19.0-headers.tar.gz
#13 34.19 .../node_modules/cpu-features install: gyp http 200 https://unofficial-builds.nodejs.org/download/release/v18.19.0/node-v18.19.0-headers.tar.gz
#13 34.55 .../node_modules/canvas install: gyp http 200 https://unofficial-builds.nodejs.org/download/release/v18.19.0/node-v18.19.0-headers.tar.gz
#13 38.73 .../node_modules/cpu-features install: gyp http GET https://unofficial-builds.nodejs.org/download/release/v18.19.0/SHASUMS256.txt
#13 39.00 .../node_modules/cpu-features install: gyp http 200 https://unofficial-builds.nodejs.org/download/release/v18.19.0/SHASUMS256.txt
#13 39.03 .../node_modules/cpu-features install: gyp info spawn /usr/bin/python3
#13 39.03 .../node_modules/cpu-features install: gyp info spawn args [
#13 39.03 .../node_modules/cpu-features install: gyp info spawn args   '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
#13 39.04 .../node_modules/cpu-features install: gyp info spawn args   'binding.gyp',
#13 39.04 .../node_modules/cpu-features install: gyp info spawn args   '-f',
#13 39.04 .../node_modules/cpu-features install: gyp info spawn args   'make',
#13 39.04 .../node_modules/cpu-features install: gyp info spawn args   '-I',
#13 39.04 .../node_modules/cpu-features install: gyp info spawn args   '/app/packages/api-server/node_modules/.pnpm/cpu-features@0.0.8/node_modules/cpu-features/build/config.gypi',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-I',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-I',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '/root/.cache/node-gyp/18.19.0/include/node/common.gypi',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-Dlibrary=shared_library',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-Dvisibility=default',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/18.19.0',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/18.19.0/<(target_arch)/node.lib',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-Dmodule_root_dir=/app/packages/api-server/node_modules/.pnpm/cpu-features@0.0.8/node_modules/cpu-features',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-Dnode_engine=v8',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '--depth=.',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '--no-parallel',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '--generator-output',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   'build',
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args   '-Goutput_dir=.'
#13 39.05 .../node_modules/cpu-features install: gyp info spawn args ]
#13 39.25 .../node_modules/canvas install: gyp http GET https://unofficial-builds.nodejs.org/download/release/v18.19.0/SHASUMS256.txt
#13 39.53 .../node_modules/canvas install: gyp http 200 https://unofficial-builds.nodejs.org/download/release/v18.19.0/SHASUMS256.txt
#13 39.54 .../node_modules/canvas install: gyp info spawn /usr/bin/python3
#13 39.55 .../node_modules/canvas install: gyp info spawn args [
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   'binding.gyp',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '-f',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   'make',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '-I',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas/build/config.gypi',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '-I',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '-I',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '/root/.cache/node-gyp/18.19.0/include/node/common.gypi',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '-Dlibrary=shared_library',
#13 39.55 .../node_modules/canvas install: gyp info spawn args   '-Dvisibility=default',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/18.19.0',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/18.19.0/<(target_arch)/node.lib',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   '-Dmodule_root_dir=/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   '-Dnode_engine=v8',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   '--depth=.',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   '--no-parallel',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   '--generator-output',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   'build',
#13 39.56 .../node_modules/canvas install: gyp info spawn args   '-Goutput_dir=.'
#13 39.56 .../node_modules/canvas install: gyp info spawn args ]
#13 39.70 .../node_modules/cpu-features install: gyp info spawn make
#13 39.70 .../node_modules/cpu-features install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
#13 39.70 .../node_modules/cpu-features install: make: Entering directory '/app/packages/api-server/node_modules/.pnpm/cpu-features@0.0.8/node_modules/cpu-features/build'
#13 39.70 .../node_modules/cpu-features install: make: Leaving directory '/app/packages/api-server/node_modules/.pnpm/cpu-features@0.0.8/node_modules/cpu-features/build'
#13 39.70 .../node_modules/cpu-features install: make: printf: Operation not permitted
#13 39.70 .../node_modules/cpu-features install: make: *** [deps/cpu_features/cpu_features.target.mk:129: Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o] Error 127
#13 39.71 .../node_modules/cpu-features install: gyp ERR! build error 
#13 39.71 .../node_modules/cpu-features install: gyp ERR! stack Error: `make` failed with exit code: 2
#13 39.71 .../node_modules/cpu-features install: gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:203:23)
#13 39.71 .../node_modules/cpu-features install: gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
#13 39.71 .../node_modules/cpu-features install: gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
#13 39.71 .../node_modules/cpu-features install: gyp ERR! System Linux 5.4.39-linuxkit
#13 39.71 .../node_modules/cpu-features install: gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
#13 39.71 .../node_modules/cpu-features install: gyp ERR! cwd /app/packages/api-server/node_modules/.pnpm/cpu-features@0.0.8/node_modules/cpu-features
#13 39.71 .../node_modules/cpu-features install: gyp ERR! node -v v18.19.0
#13 39.71 .../node_modules/cpu-features install: gyp ERR! node-gyp -v v9.4.1
#13 39.71 .../node_modules/cpu-features install: gyp ERR! not ok 
#13 39.74 .../node_modules/cpu-features install: Failed
#13 40.28 .../node_modules/canvas install: gyp info ok 
#13 40.47 .../node_modules/canvas install: gyp info it worked if it ends with ok
#13 40.48 .../node_modules/canvas install: gyp info using node-gyp@9.4.1
#13 40.48 .../node_modules/canvas install: gyp info using node@18.19.0 | linux | x64
#13 40.53 .../node_modules/canvas install: gyp info spawn make
#13 40.53 .../node_modules/canvas install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
#13 40.53 .../node_modules/canvas install: make: Entering directory '/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas/build'
#13 40.53 .../node_modules/canvas install: make: Leaving directory '/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas/build'
#13 40.53 .../node_modules/canvas install: make: printf: Operation not permitted
#13 40.54 .../node_modules/canvas install: make: *** [canvas-postbuild.target.mk:22: Release/obj.target/canvas-postbuild.node] Error 127
#13 40.54 .../node_modules/canvas install: gyp ERR! build error 
#13 40.54 .../node_modules/canvas install: gyp ERR! stack Error: `make` failed with exit code: 2
#13 40.54 .../node_modules/canvas install: gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:203:23)
#13 40.54 .../node_modules/canvas install: gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
#13 40.54 .../node_modules/canvas install: gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
#13 40.54 .../node_modules/canvas install: gyp ERR! System Linux 5.4.39-linuxkit
#13 40.54 .../node_modules/canvas install: gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--update-binary" "--module=/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108"
#13 40.54 .../node_modules/canvas install: gyp ERR! cwd /app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas
#13 40.54 .../node_modules/canvas install: gyp ERR! node -v v18.19.0
#13 40.54 .../node_modules/canvas install: gyp ERR! node-gyp -v v9.4.1
#13 40.54 .../node_modules/canvas install: gyp ERR! not ok 
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! build error 
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --update-binary --module=/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/app/packages/api-server/node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.10_encoding@0.1.13/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1098:16)
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:303:5)
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! System Linux 5.4.39-linuxkit
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! command "/usr/local/bin/node" "/app/packages/api-server/node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.10_encoding@0.1.13/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! cwd /app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! node -v v18.19.0
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! node-pre-gyp -v v1.0.10
#13 40.55 .../node_modules/canvas install: node-pre-gyp ERR! not ok 
#13 40.56 .../node_modules/canvas install: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --update-binary --module=/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/app/packages/api-server/node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
#13 40.57 .../node_modules/canvas install: Failed
#13 40.57  ELIFECYCLE  Command failed with exit code 1.
------
failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c pnpm fetch]: runc did not terminate sucessfully

@sykp241095 , I saw you closed some API issue in docker last year Feb 2023
Can you have a look @ above issue :)

@sykp241095 , below is the dockerfile , have hashed out code to exec into the image and build step wise

 Build stage.
FROM node:18.19-alpine AS builder

# Install Python
RUN apk --no-cache add python3 python3-dev py3-pip build-base pixman-dev

# Install system-level dependencies for canvas
RUN apk add --no-cache build-base cairo-dev pango-dev jpeg-dev giflib-dev librsvg-dev g++

RUN which python

#RUN find / -type f -name python3

WORKDIR /app/packages/api-server

# Install dependencies.
#RUN npm install -g npm
#RUN npm install -g pnpm
COPY pnpm-lock.yaml package.json ./
#RUN pnpm fetch

#RUN echo "Reached point A"  # Add this line for debugging

#RUN pnpm install -r --offline

# Copy source code.
COPY tsconfig.json .
COPY ./src  ./src

# Build.
#RUN pnpm run build:ts

# Clean up dev dependencies.
#RUN pnpm prune --production --config.ignore-scripts=true

# Runtime stage.
FROM node:18.19-alpine AS runtime

ENV NODE_ENV=production

WORKDIR /app/packages/api-server

COPY --from=builder /app/packages/api-server  .

# Copy the configs dir.
COPY ./configs /app/configs

EXPOSE 3450

CMD ["npm", "run", "start"]

Steps after exec into the build docker image

[root@A100 api-server]# docker run -it --rm oss-api:latest sh
/app/packages/api-server #
/app/packages/api-server #
/app/packages/api-server #

/app/packages/api-server # apk add postgresql-client git udev chromium nss freetype harfbuzz ttf-freefont ca-certificates build-base g++ cairo-dev jpeg-dev
pango-dev giflib-dev libpng-dev librsvg-dev pkgconfig libffi-dev openssl-dev
(1/278) Installing jansson (2.14-r4)
(2/278) Installing zstd-libs (1.5.5-r8)
(3/278) Installing binutils (2.41-r0)
(4/278) Installing libmagic (5.45-r1)
(5/278) Installing file (5.45-r1)
(6/278) Installing libgomp (13.2.1_git20231014-r0)
(7/278) Installing libatomic (13.2.1_git20231014-r0)
(8/278) Installing gmp (6.3.0-r0)
(9/278) Installing isl26 (0.26-r1)
(10/278) Installing mpfr4 (4.2.1-r0)
(11/278) Installing mpc1 (1.3.1-r1)
(12/278) Installing gcc (13.2.1_git20231014-r0)
(13/278) Installing libstdc++-dev (13.2.1_git20231014-r0)
(14/278) Installing musl-dev (1.2.4_git20230717-r4)
(15/278) Installing libc-dev (0.7.2-r5)
(16/278) Installing g++ (13.2.1_git20231014-r0)
(17/278) Installing make (4.4.1-r2)
(18/278) Installing fortify-headers (1.1-r3)
(19/278) Installing patch (2.7.6-r10)
(20/278) Installing build-base (0.5-r3)
(21/278) Installing ca-certificates (20230506-r0)
(22/278) Installing cairo-tools (1.18.0-r0)
(23/278) Installing libexpat (2.5.0-r2)
(24/278) Installing brotli-libs (1.1.0-r1)
(25/278) Installing libbz2 (1.0.8-r6)
(26/278) Installing libpng (1.6.40-r0)
(27/278) Installing freetype (2.13.2-r0)
(28/278) Installing fontconfig (2.14.2-r4)
(29/278) Installing expat (2.5.0-r2)
(30/278) Installing pkgconf (2.1.0-r0)
(31/278) Installing expat-dev (2.5.0-r2)
(32/278) Installing brotli (1.1.0-r1)
(33/278) Installing brotli-dev (1.1.0-r1)
(34/278) Installing zlib-dev (1.3.1-r0)
(35/278) Installing libpng-dev (1.6.40-r0)
(36/278) Installing freetype-dev (2.13.2-r0)
(37/278) Installing fontconfig-dev (2.14.2-r4)
(38/278) Installing libxau (1.0.11-r3)
(39/278) Installing xorgproto (2023.2-r0)
(40/278) Installing libxau-dev (1.0.11-r3)
(41/278) Installing libmd (1.1.0-r0)
(42/278) Installing libbsd (0.11.7-r3)
(43/278) Installing libxdmcp (1.1.4-r3)
(44/278) Installing libxcb (1.16-r0)
(45/278) Installing libx11 (1.8.7-r0)
(46/278) Installing libxext (1.3.5-r3)
(47/278) Installing libffi (3.4.4-r3)
(48/278) Installing gdbm (1.23-r1)
(49/278) Installing xz-libs (5.4.5-r0)
(50/278) Installing mpdecimal (2.5.1-r2)
(51/278) Installing ncurses-terminfo-base (6.4_p20231125-r0)
(52/278) Installing libncursesw (6.4_p20231125-r0)
(53/278) Installing libpanelw (6.4_p20231125-r0)
(54/278) Installing readline (8.2.1-r2)
(55/278) Installing sqlite-libs (3.44.2-r0)
(56/278) Installing python3 (3.11.6-r1)
(57/278) Installing python3-pycache-pyc0 (3.11.6-r1)
(58/278) Installing pyc (3.11.6-r1)
(59/278) Installing xcb-proto-pyc (1.16.0-r0)
(60/278) Installing python3-pyc (3.11.6-r1)
(61/278) Installing xcb-proto (1.16.0-r0)
(62/278) Installing libxdmcp-dev (1.1.4-r3)
(63/278) Installing libxcb-dev (1.16-r0)
(64/278) Installing xtrans (1.5.0-r0)
(65/278) Installing libx11-dev (1.8.7-r0)
(66/278) Installing libxext-dev (1.3.5-r3)
(67/278) Installing libxrender (0.9.11-r4)
(68/278) Installing libxrender-dev (0.9.11-r4)
(69/278) Installing pixman (0.42.2-r2)
(70/278) Installing pixman-dev (0.42.2-r2)
(71/278) Installing util-macros (1.20.0-r0)
(72/278) Installing xcb-util (0.4.1-r3)
(73/278) Installing xcb-util-dev (0.4.1-r3)
(74/278) Installing cairo (1.18.0-r0)
(75/278) Installing libintl (0.22.3-r0)
(76/278) Installing libblkid (2.39.3-r0)
(77/278) Installing libmount (2.39.3-r0)
(78/278) Installing pcre2 (10.42-r2)
(79/278) Installing glib (2.78.4-r0)
(80/278) Installing cairo-gobject (1.18.0-r0)
(81/278) Installing bzip2-dev (1.0.8-r6)
(82/278) Installing libxml2 (2.11.6-r0)
(83/278) Installing libxml2-utils (2.11.6-r0)
(84/278) Installing docbook-xml (4.5-r8)
Executing docbook-xml-4.5-r8.post-install
(85/278) Installing libgpg-error (1.47-r2)
(86/278) Installing libgcrypt (1.10.3-r0)
(87/278) Installing libxslt (1.1.39-r0)
(88/278) Installing docbook-xsl (1.79.2-r8)
Executing docbook-xsl-1.79.2-r8.post-install
(89/278) Installing xz (5.4.5-r0)
(90/278) Installing gettext-asprintf (0.22.3-r0)
(91/278) Installing libunistring (1.1-r2)
(92/278) Installing gettext-libs (0.22.3-r0)
(93/278) Installing gettext-envsubst (0.22.3-r0)
(94/278) Installing gettext (0.22.3-r0)
(95/278) Installing gettext-dev (0.22.3-r0)
(96/278) Installing linux-headers (6.5-r0)
(97/278) Installing libffi-dev (3.4.4-r3)
(98/278) Installing bsd-compat-headers (0.7.2-r5)
(99/278) Installing libformw (6.4_p20231125-r0)
(100/278) Installing libmenuw (6.4_p20231125-r0)
(101/278) Installing libncurses++ (6.4_p20231125-r0)
(102/278) Installing ncurses-dev (6.4_p20231125-r0)
(103/278) Installing libedit (20230828.3.1-r3)
(104/278) Installing libedit-dev (20230828.3.1-r3)
(105/278) Installing libpcre2-16 (10.42-r2)
(106/278) Installing libpcre2-32 (10.42-r2)
(107/278) Installing pcre2-dev (10.42-r2)
(108/278) Installing libuuid (2.39.3-r0)
(109/278) Installing libfdisk (2.39.3-r0)
(110/278) Installing libsmartcols (2.39.3-r0)
(111/278) Installing util-linux-dev (2.39.3-r0)
(112/278) Installing glib-dev (2.78.4-r0)
(113/278) Installing cairo-dev (1.18.0-r0)
(114/278) Installing libfontenc (1.1.7-r4)
(115/278) Installing mkfontscale (1.2.2-r4)
(116/278) Installing font-opensans (0_git20210927-r1)
(117/278) Installing shared-mime-info (2.4-r0)
(118/278) Installing hicolor-icon-theme (0.17-r2)
(119/278) Installing libjpeg-turbo (3.0.1-r0)
(120/278) Installing libsharpyuv (1.3.2-r0)
(121/278) Installing libwebp (1.3.2-r0)
(122/278) Installing tiff (4.6.0-r0)
(123/278) Installing gdk-pixbuf (2.42.10-r6)
(124/278) Installing gtk-update-icon-cache (3.24.38-r5)
(125/278) Installing libxcomposite (0.4.6-r4)
(126/278) Installing libxfixes (6.0.1-r3)
(127/278) Installing libxcursor (1.2.1-r3)
(128/278) Installing libxdamage (1.1.6-r4)
(129/278) Installing libxi (1.8.1-r2)
(130/278) Installing libxinerama (1.1.5-r3)
(131/278) Installing libxrandr (1.5.4-r0)
(132/278) Installing libatk-1.0 (2.50.1-r0)
(133/278) Installing libxtst (1.2.4-r4)
(134/278) Installing dbus-libs (1.14.10-r0)
(135/278) Installing at-spi2-core (2.50.1-r0)
(136/278) Installing libatk-bridge-2.0 (2.50.1-r0)
(137/278) Installing avahi-libs (0.8-r13)
(138/278) Installing nettle (3.9.1-r0)
(139/278) Installing libidn2 (2.3.4-r4)
(140/278) Installing libtasn1 (4.19.0-r2)
(141/278) Installing p11-kit (0.25.3-r0)
(142/278) Installing gnutls (3.8.3-r0)
(143/278) Installing cups-libs (2.4.7-r0)
(144/278) Installing libepoxy (1.5.10-r1)
(145/278) Installing fribidi (1.0.13-r0)
(146/278) Installing graphite2 (1.3.14-r6)
(147/278) Installing harfbuzz (8.3.0-r0)
(148/278) Installing libxft (2.3.8-r2)
(149/278) Installing pango (1.51.0-r0)
(150/278) Installing wayland-libs-client (1.22.0-r4)
(151/278) Installing wayland-libs-cursor (1.22.0-r4)
(152/278) Installing wayland-libs-egl (1.22.0-r4)
(153/278) Installing xkeyboard-config (2.40-r0)
(154/278) Installing libxkbcommon (1.6.0-r0)
(155/278) Installing gtk+3.0 (3.24.38-r5)
Executing gtk+3.0-3.24.38-r5.post-install
(156/278) Installing icu-data-full (74.1-r0)
(157/278) Installing mesa (23.3.1-r0)
(158/278) Installing llvm17-libs (17.0.5-r0)
(159/278) Installing hwdata-pci (0.377.2-r0)
(160/278) Installing libpciaccess (0.17-r2)
(161/278) Installing libdrm (2.4.118-r0)
(162/278) Installing libelf (0.190-r1)
(163/278) Installing mesa-glapi (23.3.1-r0)
(164/278) Installing mesa-dri-gallium (23.3.1-r0)
(165/278) Installing eudev-libs (3.2.14-r0)
(166/278) Installing libice (1.1.1-r5)
(167/278) Installing libsm (1.2.4-r3)
(168/278) Installing libxt (1.3.0-r4)
(169/278) Installing libxmu (1.1.4-r2)
(170/278) Installing xset (1.2.5-r1)
(171/278) Installing xprop (1.2.6-r0)
(172/278) Installing xdg-utils (1.1.3-r4)
(173/278) Installing libogg (1.3.5-r5)
(174/278) Installing libflac (1.4.3-r1)
(175/278) Installing alsa-lib (1.2.10-r0)
(176/278) Installing libSvtAv1Enc (1.7.0-r0)
(177/278) Installing aom-libs (3.7.1-r0)
(178/278) Installing libva (2.20.0-r0)
(179/278) Installing libvdpau (1.5-r2)
(180/278) Installing onevpl-libs (2023.3.1-r2)
(181/278) Installing ffmpeg-libavutil (6.1.1-r0)
(182/278) Installing libdav1d (1.3.0-r0)
(183/278) Installing libhwy (1.0.7-r0)
(184/278) Installing lcms2 (2.15-r4)
(185/278) Installing libjxl (0.8.2-r0)
(186/278) Installing lame-libs (3.100-r5)
(187/278) Installing opus (1.4-r0)
(188/278) Installing rav1e-libs (0.6.6-r2)
(189/278) Installing soxr (0.1.3-r7)
(190/278) Installing ffmpeg-libswresample (6.1.1-r0)
(191/278) Installing libtheora (1.1.1-r18)
(192/278) Installing libvorbis (1.3.7-r2)
(193/278) Installing libvpx (1.13.1-r0)
(194/278) Installing libwebpmux (1.3.2-r0)
(195/278) Installing x264-libs (0.164_git20231001-r0)
(196/278) Installing numactl (2.0.16-r4)
(197/278) Installing x265-libs (3.5-r4)
(198/278) Installing xvidcore (1.3.7-r2)
(199/278) Installing ffmpeg-libavcodec (6.1.1-r0)
(200/278) Installing libbluray (1.3.4-r1)
(201/278) Installing mpg123-libs (1.32.3-r0)
(202/278) Installing libopenmpt (0.7.3-r1)
(203/278) Installing cjson (1.7.17-r0)
(204/278) Installing mbedtls (2.28.7-r0)
(205/278) Installing librist (0.2.10-r0)
(206/278) Installing libsrt (1.5.3-r0)
(207/278) Installing libssh (0.10.6-r0)
(208/278) Installing libsodium (1.0.19-r0)
(209/278) Installing libzmq (4.3.5-r2)
(210/278) Installing ffmpeg-libavformat (6.1.1-r0)
(211/278) Installing crc32c (1.1.2-r0)
(212/278) Installing double-conversion (3.3.0-r0)
(213/278) Installing libevent (2.1.12-r7)
(214/278) Installing wayland-libs-server (1.22.0-r4)
(215/278) Installing mesa-gbm (23.3.1-r0)
(216/278) Installing harfbuzz-subset (8.3.0-r0)
(217/278) Installing icu-libs (74.1-r0)
(218/278) Installing minizip (1.3.1-r0)
(219/278) Installing nspr (4.35-r4)
(220/278) Installing nss (3.97-r0)
(221/278) Installing openh264 (2.4.0-r0)
(222/278) Installing libcamera-ipa (0.1.0-r1)
(223/278) Installing libunwind (1.7.2-r1)
(224/278) Installing yaml (0.2.5-r2)
(225/278) Installing libcamera (0.1.0-r1)
(226/278) Installing speexdsp (1.2.1-r2)
(227/278) Installing libuv (1.47.0-r0)
(228/278) Installing roc-toolkit-libs (0.3.0-r0)
(229/278) Installing libsndfile (1.2.2-r0)
(230/278) Installing webrtc-audio-processing-1 (1.3-r0)
(231/278) Installing pipewire-libs (1.0.0-r0)
(232/278) Installing libasyncns (0.8-r2)
(233/278) Installing libltdl (2.4.7-r3)
(234/278) Installing orc (0.4.34-r0)
(235/278) Installing tdb-libs (1.4.9-r0)
(236/278) Installing libpulse (16.1-r11)
(237/278) Installing libwebpdemux (1.3.2-r0)
(238/278) Installing chromium (121.0.6167.85-r0)
(239/278) Installing giflib (5.2.1-r5)
(240/278) Installing giflib-dev (5.2.1-r5)
(241/278) Installing c-ares (1.24.0-r1)
(242/278) Installing nghttp2-libs (1.58.0-r0)
(243/278) Installing libcurl (8.5.0-r0)
(244/278) Installing git (2.43.0-r0)
(245/278) Installing libturbojpeg (3.0.1-r0)
(246/278) Installing libjpeg-turbo-dev (3.0.1-r0)
(247/278) Installing jpeg-dev (9e-r1)
(248/278) Installing rsvg-convert (2.57.1-r0)
(249/278) Installing librsvg (2.57.1-r0)
(250/278) Installing zstd (1.5.5-r8)
(251/278) Installing zstd-dev (1.5.5-r8)
(252/278) Installing libtiffxx (4.6.0-r0)
(253/278) Installing libwebpdecoder (1.3.2-r0)
(254/278) Installing libwebp-dev (1.3.2-r0)
(255/278) Installing tiff-dev (4.6.0-r0)
(256/278) Installing gdk-pixbuf-dev (2.42.10-r6)
(257/278) Installing librsvg-dev (2.57.1-r0)
(258/278) Installing openssl-dev (3.1.4-r5)
(259/278) Installing pango-tools (1.51.0-r0)
(260/278) Installing fribidi-dev (1.0.13-r0)
(261/278) Installing harfbuzz-cairo (8.3.0-r0)
(262/278) Installing harfbuzz-gobject (8.3.0-r0)
(263/278) Installing harfbuzz-icu (8.3.0-r0)
(264/278) Installing graphite2-dev (1.3.14-r6)
(265/278) Installing icu (74.1-r0)
(266/278) Installing icu-dev (74.1-r0)
(267/278) Installing harfbuzz-dev (8.3.0-r0)
(268/278) Installing libxft-dev (2.3.8-r2)
(269/278) Installing pango-dev (1.51.0-r0)
(270/278) Installing postgresql-common (1.2-r0)
Executing postgresql-common-1.2-r0.pre-install
(271/278) Installing lz4-libs (1.9.4-r5)
(272/278) Installing libpq (16.1-r0)
(273/278) Installing postgresql16-client (16.1-r0)
(274/278) Installing encodings (1.0.7-r1)
(275/278) Installing font-freefont (20120503-r4)
(276/278) Installing udev-init-scripts (35-r1)
(277/278) Installing kmod-libs (31-r2)
(278/278) Installing eudev (3.2.14-r0)
Executing busybox-1.36.1-r15.trigger
Executing ca-certificates-20230506-r0.trigger
Executing fontconfig-2.14.2-r4.trigger
Executing glib-2.78.4-r0.trigger
Executing mkfontscale-1.2.2-r4.trigger
Executing shared-mime-info-2.4-r0.trigger
Executing gdk-pixbuf-2.42.10-r6.trigger
Executing gtk-update-icon-cache-3.24.38-r5.trigger
Executing postgresql-common-1.2-r0.trigger
* Setting postgresql16 as the default version
Executing eudev-3.2.14-r0.trigger
OK: 932 MiB in 295 packages
/app/packages/api-server # npm install -g pnpm

added 1 package in 696ms

1 package is looking for funding
  run `npm fund` for details
npm notice
npm notice New minor version of npm available! 10.2.3 -> 10.4.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.4.0
npm notice Run npm install -g npm@10.4.0 to update!
npm notice
/app/packages/api-server # pnmp fetch
sh: pnmp: not found
/app/packages/api-server # npm install -g pnpm

changed 1 package in 423ms

1 package is looking for funding
  run `npm fund` for details
/app/packages/api-server # pnmp fetch
sh: pnmp: not found
/app/packages/api-server # pnpm fetch
Importing packages to virtual store
Already up to date
Downloading registry.npmjs.org/node-sql-parser/4.6.5: 5.54 MB/5.54 MB, done
Downloading registry.npmjs.org/world-countries/4.0.0: 5.66 MB/5.66 MB, done
Downloading registry.npmjs.org/next/12.3.4: 6.51 MB/6.51 MB, done
Downloading registry.npmjs.org/typescript/4.7.4: 11.70 MB/11.70 MB, done
Downloading registry.npmjs.org/typescript/4.8.4: 11.94 MB/11.94 MB, done
Downloading registry.npmjs.org/mailing/0.8.19: 13.38 MB/13.38 MB, done
Downloading registry.npmjs.org/@next/swc-linux-x64-musl/12.3.4: 15.32 MB/15.32 MB, done
Progress: resolved 865, reused 0, downloaded 865, added 865, done
Downloading registry.npmjs.org/@next/swc-linux-x64-gnu/12.3.4: 15.77 MB/15.77 MB, done
node_modules/.pnpm/bufferutil@4.0.7/node_modules/bufferutil: Running install script, done in 103ms
node_modules/.pnpm/utf-8-validate@5.0.10/node_modules/utf-8-validate: Running install script, done in 114ms
node_modules/.pnpm/core-js@3.31.0/node_modules/core-js: Running postinstall script, done in 49ms
node_modules/.pnpm/@prisma+engines@4.16.2/node_modules/@prisma/engines: Running postinstall script, done in 2s
node_modules/.pnpm/bcrypt@5.1.0_encoding@0.1.13/node_modules/bcrypt: Running install script, done in 1.1s
node_modules/.pnpm/core-js@2.6.12/node_modules/core-js: Running postinstall script, done in 54ms
node_modules/.pnpm/fast-folder-size@1.6.1/node_modules/fast-folder-size: Running postinstall script, done in 136ms
node_modules/.pnpm/@prisma+engines@5.3.1/node_modules/@prisma/engines: Running postinstall script, done in 2.6s
node_modules/.pnpm/msgpackr-extract@3.0.2/node_modules/msgpackr-extract: Running install script, done in 102ms
node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas: Running install script, done in 23.2s
node_modules/.pnpm/esbuild@0.15.18/node_modules/esbuild: Running postinstall script, done in 83ms
node_modules/.pnpm/prisma@5.3.1/node_modules/prisma: Running preinstall script, done in 48ms
node_modules/.pnpm/prisma@4.16.2/node_modules/prisma: Running preinstall script, done in 54ms
node_modules/.pnpm/@prisma+client@4.13.0_prisma@5.3.1/node_modules/@prisma/client: Running postinstall script, done in 604ms
node_modules/.pnpm/@prisma+client@4.16.2_prisma@4.16.2/node_modules/@prisma/client: Running postinstall script, done in 523ms
node_modules/.pnpm/sqlite3@5.1.6/node_modules/sqlite3: Running install script, done in 1.3s

devDependencies: skipped because NODE_ENV is set to production
/app/packages/api-server # pnpm install -r --offline
 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "@ossinsight/types@workspace:^" is in the dependencies but no package named "@ossinsight/types" is present in the workspace

This error happened while installing a direct dependency of /app/packages/api-server

Packages found in the workspace: @ossinsight/api-server

@sykp241095 , we are trying docker-compose as well and in-order to run docker-compose successfully we need to make API server active either in docker container or host , docker build is failing for API server which is mentioned above