xtatsux / nextjs-docker

Next.js boilerplate for macOS/Linux/Windows development and Alpine Linux Container deployments to production with security in mind!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextJS and Docker

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 boilerplate for macOS/Linux/Windows development and Alpine Linux Container deployments to production with security in mind!

License:MIT License


Languages

Language:JavaScript 44.4%Language:Dockerfile 39.4%Language:Shell 13.0%Language:Batchfile 3.1%