Skip to content

Commit 7fb034c

Browse files
fix: bust Docker cache for plugin layer on each build
Use github.run_id as QWEN3VL_CACHE_BUST build arg to ensure the plugin pip install always fetches the latest code from main.
1 parent eefc7b3 commit 7fb034c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/images-mayflower-docling-ocr-qwen3vl.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
build-args: |
7777
BASE_IMAGE=${{ github.event.inputs.base_image || 'ghcr.io/docling-project/docling-serve-cu128:main' }}
7878
QWEN3VL_PLUGIN_REF=${{ github.event.inputs.plugin_ref || 'main' }}
79+
QWEN3VL_CACHE_BUST=${{ github.run_id }}
7980
8081
- name: Generate artifact attestation
8182
uses: actions/attest-build-provenance@v1

Containerfile.mayflower-qwen3vl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ USER 0
88

99
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
1010

11+
# Cache-bust arg: change to force re-install of plugin
12+
ARG QWEN3VL_CACHE_BUST=1
13+
1114
RUN /opt/app-root/bin/python -m pip install --no-cache-dir \
1215
"git+${QWEN3VL_PLUGIN_REPO}@${QWEN3VL_PLUGIN_REF}" && \
1316
/opt/app-root/bin/python -c "from docling_ocr_qwen3vl.options import DEFAULT_QWEN3VL_MODEL_REPO_ID; print('default_model_repo_id=', DEFAULT_QWEN3VL_MODEL_REPO_ID)"

0 commit comments

Comments
 (0)