feat: 优化dockerfile,可使包体积从1.1G缩小至200M #3006
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
已知问题
解决方案
standalone
部署方式,仅将必要文件打包改动收益
1.1G
缩小至200M
具体改动
next.config.js
的output
为standalone
runner
构建步骤,仅打包必要文件在线测试
线上运行良好,可访问我的博客体验:https://blog.owenyang.top
体积对比
测试确认