feat(docker): add Docker support and enhance dashboard data

- Add Dockerfile and docker-compose.yml for containerized deployment
- Update server to listen on all network interfaces for Docker compatibility
- Add .dockerignore to exclude unnecessary files from build context
- Enhance dashboard controller with additional user data, trends, and suggestions
- Update package.json scripts for proper Docker build workflow
This commit is contained in:
Jp
2026-02-01 21:26:26 +08:00
parent f521970a65
commit 3dc74b6aa2
12 changed files with 81 additions and 23 deletions

View File

@@ -54,7 +54,7 @@ async function bootstrap() {
expressApp.locals.round = Math.round;
const PORT = process.env.PORT || 3000;
await app.listen(PORT);
await app.listen(PORT, '0.0.0.0');
console.log(`Application is running on: ${await app.getUrl()}`);
}
bootstrap();