|
|
|
@ -44,7 +44,6 @@ RUN echo "node-linker=hoisted" > .npmrc
|
|
|
|
|
RUN pnpm install --prod --shamefully-hoist \ |
|
|
|
|
&& pnpm dlx 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 ./* \ |
|
|
|
|
&& chmod +x /usr/src/appEntry/start.sh |
|
|
|
|
|
|
|
|
|
########## |
|
|
|
@ -60,12 +59,12 @@ ENV NC_TOOL_DIR=/usr/app/data/
|
|
|
|
|
|
|
|
|
|
RUN apk --update --no-cache add \ |
|
|
|
|
nodejs \ |
|
|
|
|
tar \ |
|
|
|
|
dumb-init |
|
|
|
|
|
|
|
|
|
# Copy litestream binary build |
|
|
|
|
COPY --from=lt-builder /usr/src/lt /usr/src/appEntry/litestream |
|
|
|
|
# Copy packaged production code & main entry file |
|
|
|
|
COPY --from=builder /usr/src/app/ /usr/src/app/ |
|
|
|
|
COPY --from=builder /usr/src/appEntry/ /usr/src/appEntry/ |
|
|
|
|
|
|
|
|
|
EXPOSE 8080 |
|
|
|
|