ARG NODE_ENVENV NODE_ENV=$NODE_ENV
FROM node:18-alpine as baseFROM base as builderWORKDIR /home/nodeCOPY package*.json ./COPY . .RUN yarn installRUN yarn buildFROM base as runtimeENV NODE_ENV=productionWORKDIR /home/nodeCOPY package*.json ./RUN yarn install --productionCOPY --from=builder /home/node/dist ./distCOPY --from=builder /home/node/build ./buildEXPOSE 3000CMD ["node", "dist/server.js"]