change from npm to yarn in Dockerfile

This commit is contained in:
RcleydsonR 2022-11-09 11:12:53 -03:00
parent 631bfc7d76
commit 43d348fcfb

View File

@ -2,9 +2,9 @@ FROM node:lts-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY package.json yarn.lock ./
RUN yarn
COPY ./ ./
EXPOSE 3000
CMD ["npm", "run", "start"]
CMD ["yarn", "start"]