Browse Source

fix(nocodb): update pnpm flags

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
4ee67b1139
  1. 2
      packages/nocodb/Dockerfile
  2. 2
      packages/nocodb/Dockerfile.local

2
packages/nocodb/Dockerfile

@ -39,7 +39,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 --omit=dev --quiet \
RUN pnpm install --prod --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 ./* \

2
packages/nocodb/Dockerfile.local

@ -23,7 +23,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 --omit=dev --quiet \
RUN pnpm install --prod --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 ./* \

Loading…
Cancel
Save