- Build Next.js app during docker build (not on container start) — fixes yarn cache permission errors and makes container startup instant - Remove yarn.lock during build so nothing can accidentally invoke yarn - Add lean runner stage: copies only .next, node_modules, public — reduces final image size - npm start is now the only thing that runs at container start Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2.2 KiB
2.2 KiB