- Install Docker on your machine.
- Build your container:
docker build -t nextjs-docker .
- Run your container:
docker run -p 3000:3000 nextjs-docker
- Open http://localhost:3000 with your browser to see the result.
- Install the dependencies:
npm ci
- Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.