Where does next start read next.config from? Three run-ins with a Docker runtime image
A Next.js runtime image that copied only .next from the build stage tripped us up three times in two months: images.remotePatterns ignored so images returned 400, basePath gone so every route returned 404, and after switching to a non-root user, corepack hanging while trying to re-download pnpm and a logger's mkdir failing with EACCES so every BFF returned an HTML 500. I checked the Next source for which settings are baked into the build output and which ones next start reads at runtime, and wrote down a checklist for non-root containers.