If you want to host your static nextjs application using docker and nginx, follow the following steps:
- Create
Dockerfilein root of your project and paste following contents
# Stage 1: Build the Next.js app
FROM node:lts AS build-deps
WORKDIR /usr/src/app
COPY package.json yarn.lock ./