|
|
|
@ -33,7 +33,7 @@ COPY ./docker/start-litestream.sh /usr/src/appEntry/start.sh
|
|
|
|
|
# reduce node_module size with modclean & removing sqlite deps, |
|
|
|
|
# package built code into app.tar.gz & add execute permission to start.sh |
|
|
|
|
RUN npm ci --production --quiet \ |
|
|
|
|
&& npx modclean --patterns="default:*" --ignore="nc-lib-gui/**,nc-lib-gui-v2/**,dayjs/**,express-status-monitor/**" --run \ |
|
|
|
|
&& npx modclean --patterns="default:*" --ignore="nc-lib-gui/**,dayjs/**,express-status-monitor/**" --run \ |
|
|
|
|
&& rm -rf ./node_modules/sqlite3/deps \ |
|
|
|
|
&& tar -czf ../appEntry/app.tar.gz ./* \ |
|
|
|
|
&& chmod +x /usr/src/appEntry/start.sh |
|
|
|
|