Merge pull request #14 from redrockjs/dev

fix: update dockerfile
This commit was merged in pull request #14.
This commit is contained in:
Valeriy G
2024-05-17 09:05:50 +03:00
committed by GitHub

View File

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