12345678910111213141516171819 |
- FROM node:14.18 AS build
- WORKDIR /usr/src/orion
- COPY . .
- RUN yarn install --frozen-lockfile
- RUN yarn run build
- FROM node:14.18
- WORKDIR /usr/src/orion
- COPY package.json .
- COPY yarn.lock .
- COPY --from=build /usr/src/orion/dist dist/
- RUN yarn install --frozen-lockfile --production
- CMD ["yarn", "start"]
|