mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
Merge pull request #3201 from alfadb/fix/dockerfile-copy-docs-legal
fix(docker): 将 docs/legal 纳入构建上下文以支持 admin-compliance gate
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
*.md
|
||||
!deploy/DOCKER.md
|
||||
docs/
|
||||
# admin-compliance gate (LegalDocumentView.vue) build-time imports
|
||||
# docs/legal/*.md?raw into the frontend bundle; keep that subtree in the
|
||||
# Docker build context even though docs/ is otherwise excluded.
|
||||
!docs/legal/
|
||||
!docs/legal/*.md
|
||||
|
||||
# IDE
|
||||
.idea/
|
||||
|
||||
+6
-1
@@ -27,8 +27,13 @@ RUN corepack enable && corepack prepare pnpm@9 --activate
|
||||
COPY frontend/package.json frontend/pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Copy frontend source and build
|
||||
# Copy frontend source and build.
|
||||
# LegalDocumentView.vue (admin-compliance gate) build-time imports
|
||||
# ../../../../docs/legal/*.md?raw, so docs/legal/ must sit beside frontend/
|
||||
# in the image (WORKDIR /app/frontend -> resolves to /app/docs/legal/*.md).
|
||||
# Copy only that subtree to keep the build dependency minimal.
|
||||
COPY frontend/ ./
|
||||
COPY docs/legal/ /app/docs/legal/
|
||||
RUN pnpm run build
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
+6
-1
@@ -26,8 +26,13 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
COPY frontend/package.json frontend/pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Copy frontend source and build
|
||||
# Copy frontend source and build.
|
||||
# LegalDocumentView.vue (admin-compliance gate) build-time imports
|
||||
# ../../../../docs/legal/*.md?raw, so docs/legal/ must sit beside frontend/
|
||||
# in the image (WORKDIR /app/frontend -> resolves to /app/docs/legal/*.md).
|
||||
# Copy only that subtree to keep the build dependency minimal.
|
||||
COPY frontend/ ./
|
||||
COPY docs/legal/ /app/docs/legal/
|
||||
RUN pnpm run build
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user