From ae1ca43da091eb28bf62da92272cf204675ecbc7 Mon Sep 17 00:00:00 2001 From: Ranadeep Polavarapu Date: Sat, 27 Oct 2018 21:41:24 -0400 Subject: [PATCH] perf(docker): add `yarn` for faster dependency installs --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82746c902e..6ba34ca2c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,12 +12,12 @@ RUN apk update && apk add \ wget # install global npm dependencies -RUN npm install -g ember-cli@latest +RUN yarn global add ember-cli@latest # use changes to package.json to force Docker not to use the cache # when we change our application's nodejs dependencies: COPY package*.json /tmp/ -RUN cd /tmp && npm install +RUN cd /tmp && yarn install --silent RUN mkdir -p /usr/src/app && cp -a /tmp/node_modules /usr/src/app # setup folders @@ -34,4 +34,4 @@ RUN sed -i -e "s/localhost:5984/couchdb:5984/g" ./script/server.js EXPOSE 4200 -ENTRYPOINT ./script/initcouch.sh && npm start +ENTRYPOINT ./script/initcouch.sh && yarn start