From 2715dbccbb4f578b4de7e6d409eacfb0f8575656 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 20 Jul 2023 01:07:46 +0800 Subject: [PATCH] fix(nocodb): add --shamefully-hoist --- packages/nocodb/Dockerfile | 2 +- packages/nocodb/Dockerfile.local | 2 +- packages/nocodb/litestream/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/Dockerfile b/packages/nocodb/Dockerfile index c2060daf46..7274fe28f6 100644 --- a/packages/nocodb/Dockerfile +++ b/packages/nocodb/Dockerfile @@ -37,7 +37,7 @@ COPY src/public/ ./docker/public/ # install production dependencies, # reduce node_module size with modclean & removing sqlite deps, # package built code into app.tar.gz & add execute permission to start.sh -RUN pnpm install --prod --reporter=silent \ +RUN pnpm install --prod --shamefully-hoist --reporter=silent \ && npx modclean --patterns="default:*" --ignore="nc-lib-gui/**,dayjs/**,express-status-monitor/**,@azure/msal-node/dist/**" --run \ && rm -rf ./node_modules/sqlite3/deps \ && tar -czf ../appEntry/app.tar.gz ./* \ diff --git a/packages/nocodb/Dockerfile.local b/packages/nocodb/Dockerfile.local index 9b8a0d3b61..56650892c9 100644 --- a/packages/nocodb/Dockerfile.local +++ b/packages/nocodb/Dockerfile.local @@ -21,7 +21,7 @@ COPY src/public/ ./docker/public/ # reduce node_module size with modclean & removing sqlite deps, # package built code into app.tar.gz & add execute permission to start.sh RUN pnpm uninstall --save nocodb-sdk -RUN pnpm install --prod --reporter=silent \ +RUN pnpm install --prod --shamefully-hoist --reporter=silent \ && npx modclean --patterns="default:*" --ignore="nc-lib-gui/**,dayjs/**,express-status-monitor/**,@azure/msal-node/dist/**" --run \ && rm -rf ./node_modules/sqlite3/deps \ && tar -czf ../appEntry/app.tar.gz ./* \ diff --git a/packages/nocodb/litestream/Dockerfile b/packages/nocodb/litestream/Dockerfile index 07f50c6c9c..6de93a591e 100644 --- a/packages/nocodb/litestream/Dockerfile +++ b/packages/nocodb/litestream/Dockerfile @@ -26,7 +26,7 @@ COPY ./docker/start-litestream.sh /usr/src/appEntry/start.sh # install production dependencies, # reduce node_module size with modclean & removing sqlite deps, # package built code into app.tar.gz & add execute permission to start.sh -RUN pnpm install --prod --reporter=silent +RUN pnpm install --prod --shamefully-hoist --reporter=silent RUN npx modclean --patterns="default:*" --ignore="nc-lib-gui/**,dayjs/**,express-status-monitor/**" --run RUN rm -rf ./node_modules/sqlite3/deps RUN tar -czf ../appEntry/app.tar.gz ./*