fix: update dockerfile

This commit is contained in:
2024-05-17 08:56:32 +03:00
parent 8f7929d2d6
commit 543b96e983

View File

@@ -6,9 +6,10 @@ WORKDIR ${APP_DIR}
COPY package*.json ./
RUN npm ci && npm cache clean --force
COPY ./build ./
CMD ["npm", "run", "build"]
# Run stage
FROM node:20-alpine
COPY --from=build ./build ./
COPY --from=build . .
CMD ["node", "index.js"]