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

Commit

Permalink
Merge pull request #146 from datasciencebr/cuducos-yarn-install-on-do…
Browse files Browse the repository at this point in the history
…cker

Install yarn the proper way in Docker
  • Loading branch information
cuducos committed Mar 18, 2017
2 parents 57b88aa + e04aaff commit f11e29d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ You can get the datasets running [Rosie](https://github.com/datasciencebr/rosie)

#### Requirements

Jarbas requires [Python 3.5](http://python.org), [Node.js 6](http://nodejs.org) with [Yarn](https://yarnpkg.com), and [PostgreSQL 9.4+](https://www.postgresql.org).
Jarbas requires [Python 3.5](http://python.org), [Yarn](https://yarnpkg.com), and [PostgreSQL 9.4+](https://www.postgresql.org).

Once you have `pip` and `yarn` available install the dependencies:

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
- "./:/code"
- "/code/node_modules"
- "assets:/code/jarbas/frontend/static"
command: [npm, run, watch]
command: [yarn, watch]
nginx:
build:
context: .
Expand Down

0 comments on commit f11e29d

Please sign in to comment.