File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 cp config/secrets.github.yml config/secrets.yml
4949 cp config/ingestion.example.yml config/ingestion.yml
5050 bundle exec rake db:setup
51+ - run : yarn install
52+ name : Run yarn install
5153 - run : bundle exec rake assets:precompile
5254 name : Run asset compilation
5355 - run : bundle exec whenever --update-crontab --set environment="$ENV"
Original file line number Diff line number Diff line change 5353 cp config/secrets.github.yml config/secrets.yml
5454 cp config/ingestion.example.yml config/ingestion.yml
5555 bundle exec rake db:test:prepare
56+ - run : yarn install
57+ name : Run yarn install
5658 - run : bundle exec rails test
5759 name : Run tests
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ WORKDIR /code
88
99# install dependencies
1010RUN apt-get update \
11- && apt-get install build-essential curl file git gnupg2 imagemagick libpq-dev libyaml-dev nodejs -y \
11+ && apt-get install build-essential curl file git gnupg2 imagemagick libpq-dev libyaml-dev nodejs yarn -y \
1212 && apt-get clean
1313
1414
@@ -41,6 +41,12 @@ COPY Gemfile Gemfile.lock ./
4141# install gems
4242RUN bundle check || bundle install
4343
44+ # copy package file
45+ COPY package.json yarn.lock ./
46+
47+ # install js dependencies
48+ RUN yarn install
49+
4450# copy code
4551COPY . .
4652
You can’t perform that action at this time.
0 commit comments