1
0
Fork 0

Use the yarn pacakge manager for javascript

[Yarn](https://yarnpkg.com/) is a drop in replacement for npm.

We should use it because:

* It's faster
* It uses a lockfile, making the builds more deterministic.
This commit is contained in:
Ed Robinson 2016-11-16 02:25:06 +00:00
parent a186d5f87a
commit 987ab7612d
No known key found for this signature in database
GPG key ID: EC501FCA6421CCF0
3 changed files with 6398 additions and 5 deletions

View file

@ -1,13 +1,15 @@
FROM node:6.3.0
FROM node:6.9.1
ENV WEBUI_DIR /src/webui
RUN mkdir -p $WEBUI_DIR
COPY package.json $WEBUI_DIR/
COPY yarn.lock $WEBUI_DIR/
WORKDIR $WEBUI_DIR
RUN npm set progress=false
RUN npm install --quiet
RUN npm install --quiet --global yarn@0.16.1
RUN yarn install
COPY . $WEBUI_DIR/