This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dockerfile | |
.dockerignore | |
node_modules | |
npm-debug.log | |
README.md | |
.next | |
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:16.13.1-alpine | |
WORKDIR /app | |
COPY yarn.lock ./ | |
COPY package.json ./ | |
RUN yarn install --frozen-lockfile | |
COPY . . | |
RUN yarn build | |
CMD ["yarn", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:16.13.1-alpine AS build-stage | |
WORKDIR /app | |
COPY yarn.lock ./ | |
COPY package.json ./ | |
RUN yarn install --frozen-lockfile | |
COPY . . | |
RUN yarn build | |
FROM node:16.13.1-alpine AS final-stage | |
WORKDIR /app |