fix: update dockerfile #13

Merged
redrockjs merged 1 commits from dev into main 2024-05-17 05:58:45 +00:00

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