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 WORKDIR /app
COPY package*.json ./ COPY package.json yarn.lock ./
RUN npm install RUN yarn
COPY ./ ./ COPY ./ ./
EXPOSE 3000 EXPOSE 3000
CMD ["npm", "run", "start"] CMD ["yarn", "start"]