build(docker): reduce runtime image size
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ import { withSerwist } from "@serwist/turbopack";
|
||||
*
|
||||
* 容器化部署模型:`output: "standalone"` + Docker Compose。
|
||||
* - `pnpm build` 产出 .next/standalone、.next/static、public。
|
||||
* - Dockerfile 运行 `node server.js`,并保留生产依赖以支持 Serwist 运行时生成 SW。
|
||||
* - Dockerfile 运行 `node server.js`,仅复制 standalone traced runtime 依赖。
|
||||
*/
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
|
||||
Reference in New Issue
Block a user