The Dockerfile has `COPY public ./public`, but `public/` directory was never committed to git (empty directories are not tracked by git without a placeholder file). On a fresh checkout (after `git pull` on prod), `public/` didn't exist, causing: Step 8/24 : COPY public ./public COPY failed: file not found in build context or excluded by .dockerignore: stat public: file does not exist Fix: added `dashboard/public/.gitkeep` so the directory is tracked. Discovered via the new build-context validator script (`scripts/validate-dashboard-build.sh`) which simulates a fresh git checkout + docker build.
4 lines
168 B
Plaintext
4 lines
168 B
Plaintext
# Static assets directory
|
|
# Files placed here are served at the root path of the dashboard.
|
|
# Currently empty — Next.js App Router doesn't require any static assets.
|