|
|
@ -36,7 +36,7 @@ COPY ./docker/start-litestream.sh /usr/src/appEntry/start.sh |
|
|
|
# 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 npm ci --omit=dev --quiet \ |
|
|
|
RUN npm ci --omit=dev --quiet \ |
|
|
|
&& npx modclean --patterns="default:*" --ignore="nc-lib-gui/**,dayjs/**,express-status-monitor/**" --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 ./* \ |
|
|
|
&& chmod +x /usr/src/appEntry/start.sh |
|
|
|
&& chmod +x /usr/src/appEntry/start.sh |
|
|
|