mirror of
https://github.com/whyour/qinglong.git
synced 2026-11-02 15:56:59 +08:00
19 lines
721 B
Docker
19 lines
721 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
|
|
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/ /
|