mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
LegalDocumentView.vue (admin-compliance acknowledgement gate) build-time imports ../../../../docs/legal/*.md?raw. The Docker image build broke because the frontend-builder stage only COPYs frontend/ (never docs/) and .dockerignore excludes both docs/ and *.md from the build context. Upstream CI runs `pnpm build` from the repo root (docs/ resolvable via ../docs/) and never exercises the Docker path, so this stayed hidden until the buildkit package job surfaced "Could not resolve docs/legal/...md?raw". Fix: - COPY docs/legal/ into /app/docs/legal in Dockerfile and deploy/Dockerfile so it sits beside /app/frontend (WORKDIR), matching the relative import. Only the required subtree is copied to keep the build dependency minimal. - Re-include docs/legal/*.md in .dockerignore so buildkit ships the subtree.
83 lines
1.2 KiB
Plaintext
83 lines
1.2 KiB
Plaintext
# =============================================================================
|
|
# Docker Ignore File for Sub2API
|
|
# =============================================================================
|
|
|
|
# Git
|
|
.git
|
|
.gitignore
|
|
.gitattributes
|
|
|
|
# Documentation
|
|
*.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/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
|
|
# OS files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Build artifacts
|
|
dist/
|
|
build/
|
|
|
|
# Node modules (will be installed in container)
|
|
frontend/node_modules/
|
|
node_modules/
|
|
|
|
# Go build cache (will be built in container)
|
|
backend/vendor/
|
|
|
|
# Test files
|
|
*_test.go
|
|
**/*.test.js
|
|
coverage/
|
|
.nyc_output/
|
|
|
|
# Environment files
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
|
|
# Local config
|
|
config.yaml
|
|
config.local.yaml
|
|
|
|
# Logs
|
|
*.log
|
|
logs/
|
|
|
|
# Temporary files
|
|
tmp/
|
|
temp/
|
|
*.tmp
|
|
|
|
# Deploy files (not needed in image)
|
|
deploy/install.sh
|
|
deploy/sub2api.service
|
|
deploy/sub2api-sudoers
|
|
deploy/data/
|
|
deploy/postgres_data/
|
|
deploy/redis_data/
|
|
|
|
# GoReleaser
|
|
.goreleaser.yaml
|
|
|
|
# GitHub
|
|
.github/
|
|
|
|
# Claude files
|
|
.claude/
|
|
issues/
|
|
CLAUDE.md
|