Next.js Dockerfiles
Pick the variant that matches your stack. Each one is a complete, copy-paste Dockerfile with a .dockerignore.
| Variant | Build image | Runtime image | Image size |
|---|---|---|---|
| Node Alpine + standalone output | node:24-alpine | node:24-alpine | 210.4 MB |
| Node Debian slim + standalone output | node:24-slim | node:24-slim | 268.6 MB |