Merge pull request #13 from redrockjs/dev

fix: update dockerfile
This commit was merged in pull request #13.
This commit is contained in:
Valeriy G
2024-05-17 08:58:45 +03:00
committed by GitHub

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"]