diff --git a/Dockerfile b/Dockerfile index e8c1539..912c088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,15 +6,19 @@ WORKDIR /app # Copy package.json and package-lock.json to the working directory COPY package*.json ./ +COPY yarn.lock ./ # Install any needed packages specified in package.json -RUN npm install +RUN npm install -g yarn + +# Install any needed packages specified in package.json +RUN yarn # Copy the rest of your app's source code to /app COPY . . # Build the app -RUN npm run build +RUN yarn build # Define the command to run your app using CMD which defines your runtime -CMD ["npm", "run", "start"] +CMD ["yarn", "start"]