From 72f41225d26c355ed99cb36ea852e3b4d1ab4f92 Mon Sep 17 00:00:00 2001 From: octo-patch Date: Sat, 18 Apr 2026 11:07:34 +0800 Subject: [PATCH] fix: correct server.js path in Dockerfile CMD for standalone build (fixes #3046) The CMD instruction referenced apps/web/client/server.js, which does not exist after a Next.js standalone build. The correct output path is apps/web/client/.next/standalone/apps/web/client/server.js, matching the start:standalone script in apps/web/client/package.json. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 58c2f1c4e8..f28aa1199f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,4 +25,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD bun -e "fetch('http://localhost:3000').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))" # Start the Next.js server -CMD ["bun", "apps/web/client/server.js"] \ No newline at end of file +CMD ["bun", "apps/web/client/.next/standalone/apps/web/client/server.js"] \ No newline at end of file