1 2 3 4 5 6 7 8 9 10 11 12
FROM node:current WORKDIR /src COPY . ./ RUN rm -rf ./node_modules ./.next RUN npm install RUN npm run build CMD ["npm", "run", "start"]