nextjs docker
1.0.0
A note about alpine and node which explains:
RUN apk add --no-cache libc6-compatEnjoy!
npm i && npm run dev
docker-compose up --build
This will build and run your container locally
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