Dockerfile 308 B

12345678910111213141516171819
  1. FROM node:14.18 AS build
  2. WORKDIR /usr/src/orion
  3. COPY . .
  4. RUN yarn install --frozen-lockfile
  5. RUN yarn run build
  6. FROM node:14.18
  7. WORKDIR /usr/src/orion
  8. COPY package.json .
  9. COPY yarn.lock .
  10. COPY --from=build /usr/src/orion/dist dist/
  11. RUN yarn install --frozen-lockfile --production
  12. CMD ["yarn", "start"]