refactor: optimize Docker deployment with standalone mode

- Enable Next.js standalone output for smaller image size
- Remove unnecessary npm install in production stage
- Use direct node execution instead of npm start
- Add .dockerignore to exclude unnecessary files from build context
This commit is contained in:
xmanrui
2026-03-03 17:01:24 +08:00
parent f0bbd81763
commit c064d7f8c4
3 changed files with 15 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
node_modules
.next
.git
.gitignore
.claude
*.md
.env*.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*