Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
Install yarn the proper way in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
cuducos committed Feb 1, 2017
1 parent f9ace03 commit 1cb2b67
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Dockerfile-elm
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
FROM node:6.9.1
RUN npm install -g yarn

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
RUN sudo apt-get update
RUN sudo apt-get install yarn

WORKDIR /code
COPY elm-package.json elm-package.json

COPY yarn.lock yarn.lock
COPY package.json package.json
COPY elm-package.json elm-package.json
COPY gulpfile.js gulpfile.js
RUN yarn install
RUN yarn install --pure-lockfile

COPY jarbas jarbas
CMD yarn assets

0 comments on commit 1cb2b67

Please sign in to comment.