mirror of
https://github.com/whyour/qinglong.git
synced 2026-11-07 01:27:39 +08:00
Use MikroORM's official Node SQLite dialect with bounded database isolation, preserve legacy schema and data for rollback, and require Node 22.17 or newer. Update Debian runtimes and retain ARMv6 musl compatibility without a SQLite addon. Complete short archive writes, stop orphaned SQL workers after owner death, preserve buffered startup requests, and prestart the archived backend on every platform. Cover real package installation, migration, failure recovery, and legacy database compatibility. Keep authentication storage failures distinct from expired sessions with a pinned Keyv runtime, propagated cache errors, and retryable HTTP 503 responses. Preserve genuine 401 failures and verify legacy cache bytes, initialization safety, and session recovery.
20 lines
800 B
Docker
20 lines
800 B
Docker
# The image digest is supplied by the same workflow run, never a rolling tag.
|
|
ARG BASE_IMAGE
|
|
FROM ${BASE_IMAGE} AS bundle
|
|
ARG BASE_IMAGE
|
|
ENV QL_BUNDLE_BASE_IMAGE=${BASE_IMAGE}
|
|
ARG TARGETARCH
|
|
ARG TARGETVARIANT
|
|
USER root
|
|
# SQLite comes from the retained Node runtime; no architecture-specific addon.
|
|
RUN ulimit -c 0; if [ "$TARGETARCH/$TARGETVARIANT" = arm/v6 ]; then \
|
|
export QEMU_CPU=arm1176; \
|
|
node --jitless /ql/scripts/build-upgrade-bundle.cjs /ql /out && \
|
|
for archive in /out/*.tar.gz; do \
|
|
node /ql/shell/install-bundle.cjs --root /tmp/ql-bundle-offline-smoke --file "$archive" --install && \
|
|
rm -rf /tmp/ql-bundle-offline-smoke || exit 1; \
|
|
done; \
|
|
else node /ql/scripts/build-upgrade-bundle.cjs /ql /out; fi
|
|
FROM scratch
|
|
COPY --from=bundle /out/ /
|