From: David Taylor Date: Wed, 13 Jul 2022 16:16:26 +0000 (+0100) Subject: FIX: Run `yarn install` when building development image (#638) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0a97cd9d8acae16b69027bdfd5b8a40a0829e754;p=discourse_docker.git FIX: Run `yarn install` when building development image (#638) The rails app now leans on JS dependencies being present in node_modules --- diff --git a/image/discourse_dev/postgres_dev.template.yml b/image/discourse_dev/postgres_dev.template.yml index 74c82c4..9163805 100644 --- a/image/discourse_dev/postgres_dev.template.yml +++ b/image/discourse_dev/postgres_dev.template.yml @@ -44,6 +44,8 @@ run: - exec: cd tmp && git clone https://github.com/discourse/discourse.git --depth=1 - exec: chown -R discourse /tmp/discourse - exec: cd /tmp/discourse && sudo -u discourse bundle install + - exec: cd /tmp/discourse && sudo -u discourse yarn install + - exec: cd /tmp/discourse && sudo -u discourse yarn cache clean - exec: cd /tmp/discourse && sudo -u discourse bundle exec rake db:migrate - exec: cd /tmp/discourse && sudo -u discourse RAILS_ENV=test bundle exec rake db:migrate - exec: rm -fr /tmp/discourse