fix: run npm ci to preserve lock file versions.

This commit is contained in:
Cheb 2021-04-30 22:53:25 +05:30 committed by GitHub
parent aeba7b1042
commit 072c7e6efa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,10 @@ FROM node:lts-alpine3.12
RUN mkdir -p /usr/src/bot
WORKDIR /usr/src/bot
COPY package.json /usr/src/bot
RUN npm install
ENV NODE_ENV production
COPY package*.json /usr/src/bot/
RUN npm ci --only=production
COPY . /usr/src/bot
CMD ["node", "index.js"]