⚡️ For apps running Next.JS that want the fastest possible build time ⚡️
- 🏔 Build on the node:alpine flavor, a trusted & well-maintained base image
- 🌩 Installs with pnpm using the fetch protocol, much faster than
pnpm install
for docker builds - 📦 Builds into a standalone build, ultimately shipping smaller code to the container
- Copy
Dockerfile
&.dockerignore
into your existing Next.JS app - Add
{'output': 'standalone'}
to yournext.config.js
file- See
Dockerfile:28
for more details on if you should opt-out of this behavior
- See
export.module = {
'output': 'standalone',
...otherConfig
}
PRs are always welcome
MIT License