fix: add frontend build stage to Dockerfile

The Dockerfile was copying raw web/ source files but never building the
frontend. Since .gitignore excludes web/dist/, the Docker image had no
built frontend — only the Vite dev entry point (web/index.html) which
references /src/main.tsx and only works with the Vite dev server. This
caused a blank page when accessing the dashboard.

Fix: Add a Node.js build stage that runs npm ci && npm run build, then
copy only web/dist/ into the final image. Also add web/node_modules and
web/dist to .dockerignore to keep the build context clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
shankar0123
2026-03-16 14:16:55 -04:00
parent 05443d5858
commit 169516f0fb
2 changed files with 17 additions and 3 deletions
+2
View File
@@ -7,3 +7,5 @@ scripts
coverage.*
.env
.DS_Store
web/node_modules
web/dist