Jenkins
Tests / Test tests.test_workspace_packaging.test_workspace_distributions_own_expected_import_packages failed

This commit is contained in:
2026-07-13 15:56:44 +08:00
parent e5ea32a44a
commit 97f23be394
2 changed files with 15 additions and 20 deletions
+8 -12
View File
@@ -1,21 +1,18 @@
# syntax=docker/dockerfile:1
#
# Build args let CI inject mirrors for faster builds in CN networks; the
# defaults keep the Dockerfile portable so anyone can `docker build .`
# without extra configuration.
# Base images are pinned to the project's registry mirrors so the build is
# deterministic and avoids Docker Hub / ghcr.io pull failures in CN networks.
# Trade-off: `docker build .` requires reachability of these registries.
#
# NODE_IMAGE – stage 1 base (Docker Hub library/node)
# NPM_REGISTRY – npm registry for `npm ci`
# UV_IMAGE – stage 2 base (ghcr.io/astral-sh/uv)
# APT_MIRROR – Debian apt mirror host (e.g. mirrors.aliyun.com); empty = official
# UV_INDEX_URL – PyPI index URL passed through to `uv sync`; empty = official
# NPM_REGISTRY – npm registry for `npm ci` (build-arg)
# APT_MIRROR – Debian apt mirror host (build-arg, empty = official)
# UV_INDEX_URL – PyPI index URL passed through to `uv sync` (build-arg, empty = official)
# Stage 1: build the cloud-console Vue 3 SPA.
# NOTE: do not set NODE_ENV=production here — vue-tsc and typescript are
# devDependencies required by `npm run build`.
ARG NODE_IMAGE=node:20-bookworm-slim
ARG NPM_REGISTRY=https://registry.npmjs.org
FROM ${NODE_IMAGE} AS frontend
FROM registry.jerryyan.net/library/node:20-bookworm-slim AS frontend
# Re-declare inside the stage so --build-arg values (or the global default)
# are visible to RUN. Without this, ARGs declared before FROM are inaccessible.
ARG NPM_REGISTRY
@@ -26,8 +23,7 @@ COPY cloud-console/ ./
RUN npm run build
# Stage 2: the existing Python image, now carrying the SPA build output.
ARG UV_IMAGE=ghcr.io/astral-sh/uv:python3.14-bookworm-slim
FROM ${UV_IMAGE}
FROM registry-ghcr.jerryyan.top/astral-sh/uv:python3.14-bookworm-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \