Skip to content

Next.js template/boilerplate/starting-point for Alpine Linux Container deployments with security in mind!

License

Notifications You must be signed in to change notification settings

Ourgoals/nextjs-docker

 
 

Repository files navigation

NextJS and Docker

  • node: v16.6.2
  • npm: 7.20.3
  • rootfs: Alpine 3.14
  • docker: version 20.10.8, build 3967b7d

A note about alpine and node which explains:

RUN apk add --no-cache libc6-compat

Enjoy!

Local

Dev

npm i && npm run dev

Docker Compose

docker-compose up --build

This will build and run your container locally 🚀

Traditional Docker Route

Build your containers for deploys:

MacOS/Linux

./scripts/prod.sh

Windows

./scripts/prod.bat

Now that your container is built, you can test it locally:

docker run -p 3000:3000 nextjs-docker

Now deploy 🚀

About

Next.js template/boilerplate/starting-point for Alpine Linux Container deployments with security in mind!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 43.7%
  • JavaScript 41.3%
  • Shell 12.1%
  • Batchfile 2.9%