Fix build issues found during Docker validation

- Dockerfile: add COPY db/ /app/db/ so migrations are available at
  runtime (server/src/db.js requires ../../db/migrations at startup)
- vite.config.js: fix dev proxy port from 3001 to 3000 to match
  server's default PORT

Docker build passes; server starts and connects to DB correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 19:21:14 -04:00
parent 35f9be4b02
commit 0c39eec2a9
3 changed files with 10 additions and 2 deletions

View File

@@ -13,7 +13,12 @@
"Bash(td review:*)", "Bash(td review:*)",
"Bash(td approve:*)", "Bash(td approve:*)",
"Bash(td complete:*)", "Bash(td complete:*)",
"Bash(td update:*)" "Bash(td update:*)",
"Bash(npm --version)",
"Bash(docker --version)",
"Bash(docker compose:*)",
"Bash(docker build:*)",
"Bash(docker run:*)"
] ]
} }
} }

View File

@@ -19,6 +19,9 @@ RUN npm install --omit=dev
COPY server/ ./ COPY server/ ./
# Copy db migrations (required by server/src/db.js at runtime)
COPY db/ /app/db/
# Copy built client assets # Copy built client assets
COPY --from=client-build /app/client/dist /app/client/dist COPY --from=client-build /app/client/dist /app/client/dist

View File

@@ -5,7 +5,7 @@ export default defineConfig({
plugins: [react()], plugins: [react()],
server: { server: {
proxy: { proxy: {
'/api': 'http://localhost:3001', '/api': 'http://localhost:3000',
}, },
}, },
}); });