FROM node:18 AS build WORKDIR /usr COPY package.json ./ COPY yarn.lock ./ RUN yarn install --frozen-lockfile --registry http://172.17.0.2:4873 COPY . ./ RUN yarn build FROM node:18-alpine3.16 WORKDIR /app COPY package.json ./ COPY yarn.lock ./ RUN yarn install --registry http://172.17.0.2:4873 --frozen-lockfile COPY --from=build /usr/build /app EXPOSE 8000 CMD ["node", "/app"]