- Clone repository to your machine
- Build the development Docker image using
docker build -f Dockerfile.dev -t my-nextjs-app-dev .
- Run the development container with the volume mount:
docker run -p 3000:3000 -v $(pwd):/app my-nextjs-app-dev
- The container will now have access to the codebase on the host machine, and any changes made to the codebase will be reflected in the running Next.js app inside the container.