Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
perf(docker): add yarn for faster dependency installs
Browse files Browse the repository at this point in the history
  • Loading branch information
distributedlock committed Oct 28, 2018
1 parent 3adb6cc commit ae1ca43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit ae1ca43

Please sign in to comment.