Fdk run and fdk pack fail in docker container with "undefined"

Hi,
I’m trying to build my freshdesk app inside a docker container but it fails when running fdk pack or fdk run

I tried removing the ./fdk directory completely but that did not help, fdk validate works my fdk version is 9.0.5

Output:

/app # node -v
v18.18.0
/app # npm -v
9.8.1
/app # fdk version
Installed: 9.0.5
Already Up to Date..!
/app # fdk validate
✔ Validation Successful
/app # fdk pack
undefined
/app # fdk run
undefined

running it with debug output gives me the following

LOG_LEVEL=debug fdk pack
(configs.js) loaded default configs as "{"updates":{"manifest_url":"https://cdn.freshdev.io/assets/fdk/updates.json","period":24},"log":{"level":"info"},"javascript":{"ecma_version":2020},"request":{"timeout":5000}}"
(file.js) Error while requiring /root/.fdk/configs.json: Cannot find module '/root/.fdk/configs.json'
Require stack:
- /usr/local/lib/node_modules/fdk/lib/utils/file.js
- /usr/local/lib/node_modules/fdk/lib/configs.js
- /usr/local/lib/node_modules/fdk/lib/logger.js
- /usr/local/lib/node_modules/fdk/index.js
(configs.js) loaded global configs as "{}"
(file.js) Error while requiring /app/.fdk/configs.json: Cannot find module '/app/.fdk/configs.json'
Require stack:
- /usr/local/lib/node_modules/fdk/lib/utils/file.js
- /usr/local/lib/node_modules/fdk/lib/configs.js
- /usr/local/lib/node_modules/fdk/lib/logger.js
- /usr/local/lib/node_modules/fdk/index.js
(configs.js) loaded local configs as "{}"
(configs.js) loaded env configs as "{"updates":{},"log":{"level":"debug"},"javascript":{},"request":{"timeout":5000}}"
(configs.js) loaded resolved configs as "{"updates":{"manifest_url":"https://cdn.freshdev.io/assets/fdk/updates.json","period":24},"log":{"level":"debug"},"javascript":{"ecma_version":2020},"request":{"timeout":5000}}"
(logger.js) Starting FDK in node v18.18.0 on linux
(sequelize.js) setting up sqilite at "/app/.fdk/store.sqlite"
(data.js) Read {"version_details":{"cli":{"deprecated":{"version":"<9","message":"This FDK version will be deprecated by September 30, 2023 There will be no further feature updates to this version. For a seamless app building experience, ensure to move to the latest FDK version. For more information, see https://developers.freshdesk.com/v2/docs/migration-overview/#latest_platform_version_migration."},"forced":{"version":"7.0.0","command":"npm install https://dl.freshdev.io/cli/fdk-7.0.0.tgz -g","message":"Your FDK version has been forced updated to v7.0.0, please visit https://community.developers.freshworks.com/t/fdk-v7-0-announcing-node-js-v12-and-es6-support/3606 to know more"},"latest":{"version":"9.0.5","command":"npm install https://cdn.freshdev.io/fdk/latest.tgz -g","message":"You are on the latest FDK version. For information on the features available as part of this FDK version, see https://developers.freshdesk.com/v2/docs/what's-new/ ."}},"addon":{"version":"1.13.6","url":"https://cdn.freshdev.io/assets/fdk/addons/addon.zip"}},"last_updated":{"time_stamp":1696937120084}}
(updater.js) last check less than 24 hours ago, not looking for updates
(index.js) running with opts {}
(manifest.js) Reloading manifest with {"platform-version":"2.3","product":{"freshdesk":{"location":{"ticket_sidebar":{"url":"index.html","icon":"icon.svg"}},"requests":{"orderRequest":{}}}},"engines":{"node":"18.18.0","fdk":"9.0.5"}}.
(manifest.js) Inferred db as features.
(data.js) Read {"version_details":{"cli":{"deprecated":{"version":"<9","message":"This FDK version will be deprecated by September 30, 2023 There will be no further feature updates to this version. For a seamless app building experience, ensure to move to the latest FDK version. For more information, see https://developers.freshdesk.com/v2/docs/migration-overview/#latest_platform_version_migration."},"forced":{"version":"7.0.0","command":"npm install https://dl.freshdev.io/cli/fdk-7.0.0.tgz -g","message":"Your FDK version has been forced updated to v7.0.0, please visit https://community.developers.freshworks.com/t/fdk-v7-0-announcing-node-js-v12-and-es6-support/3606 to know more"},"latest":{"version":"9.0.5","command":"npm install https://cdn.freshdev.io/fdk/latest.tgz -g","message":"You are on the latest FDK version. For information on the features available as part of this FDK version, see https://developers.freshdesk.com/v2/docs/what's-new/ ."}},"addon":{"version":"1.13.6","url":"https://cdn.freshdev.io/assets/fdk/addons/addon.zip"}},"last_updated":{"time_stamp":1696937120084}}
(data.js) Read {"version_details":{"cli":{"deprecated":{"version":"<9","message":"This FDK version will be deprecated by September 30, 2023 There will be no further feature updates to this version. For a seamless app building experience, ensure to move to the latest FDK version. For more information, see https://developers.freshdesk.com/v2/docs/migration-overview/#latest_platform_version_migration."},"forced":{"version":"7.0.0","command":"npm install https://dl.freshdev.io/cli/fdk-7.0.0.tgz -g","message":"Your FDK version has been forced updated to v7.0.0, please visit https://community.developers.freshworks.com/t/fdk-v7-0-announcing-node-js-v12-and-es6-support/3606 to know more"},"latest":{"version":"9.0.5","command":"npm install https://cdn.freshdev.io/fdk/latest.tgz -g","message":"You are on the latest FDK version. For information on the features available as part of this FDK version, see https://developers.freshdesk.com/v2/docs/what's-new/ ."}},"addon":{"version":"1.13.6","url":"https://cdn.freshdev.io/assets/fdk/addons/addon.zip"}},"last_updated":{"time_stamp":1696937120084}}
undefined