Skip to content

For apps running Next.JS that want the fastest possible build time

License

Notifications You must be signed in to change notification settings

mpash/pnpm-next-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image for NextJS

⚡️ For apps running Next.JS that want the fastest possible build time ⚡️

asciicast

Features

  • 🏔 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

Usage

  • Copy Dockerfile & .dockerignore into your existing Next.JS app
  • Add {'output': 'standalone'} to your next.config.js file
    • See Dockerfile:28 for more details on if you should opt-out of this behavior
    export.module = {
        'output': 'standalone',
        ...otherConfig
    }

Contributing

PRs are always welcome

License

MIT License

About

For apps running Next.JS that want the fastest possible build time

Topics

Resources

License

Stars

Watchers

Forks