|
|
@ -9,7 +9,7 @@ RUN apk add --no-cache python3 make g++ |
|
|
|
|
|
|
|
|
|
|
|
# Copy application dependency manifests to the container image. |
|
|
|
# Copy application dependency manifests to the container image. |
|
|
|
# A wildcard is used to ensure both package.json AND package-lock.json are copied. |
|
|
|
# A wildcard is used to ensure both package.json AND package-lock.json are copied. |
|
|
|
# Copying this separately prevents re-running pnpm install on every code change. |
|
|
|
# Copying this separately prevents re-running npm install on every code change. |
|
|
|
COPY ./package*.json ./ |
|
|
|
COPY ./package*.json ./ |
|
|
|
COPY ./docker/nc-gui/ ./docker/nc-gui/ |
|
|
|
COPY ./docker/nc-gui/ ./docker/nc-gui/ |
|
|
|
COPY ./docker/main.js ./docker/index.js |
|
|
|
COPY ./docker/main.js ./docker/index.js |
|
|
@ -19,8 +19,8 @@ COPY src/public/ ./docker/public/ |
|
|
|
# install production dependencies, |
|
|
|
# install production dependencies, |
|
|
|
# reduce node_module size with modclean & removing sqlite deps, |
|
|
|
# reduce node_module size with modclean & removing sqlite deps, |
|
|
|
# package built code into app.tar.gz & add execute permission to start.sh |
|
|
|
# package built code into app.tar.gz & add execute permission to start.sh |
|
|
|
RUN pnpm uninstall --save nocodb-sdk |
|
|
|
RUN npm uninstall --save nocodb-sdk |
|
|
|
RUN pnpm install --omit=dev --quiet \ |
|
|
|
RUN npm install --omit=dev --quiet \ |
|
|
|
&& npx modclean --patterns="default:*" --ignore="nc-lib-gui/**,dayjs/**,express-status-monitor/**,@azure/msal-node/dist/**" --run \ |
|
|
|
&& npx modclean --patterns="default:*" --ignore="nc-lib-gui/**,dayjs/**,express-status-monitor/**,@azure/msal-node/dist/**" --run \ |
|
|
|
&& rm -rf ./node_modules/sqlite3/deps \ |
|
|
|
&& rm -rf ./node_modules/sqlite3/deps \ |
|
|
|
&& tar -czf ../appEntry/app.tar.gz ./* \ |
|
|
|
&& tar -czf ../appEntry/app.tar.gz ./* \ |
|
|
|