From 6b2cd9970de3260e5b9c627e9d4989a64f438242 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Mon, 23 Aug 2021 11:31:46 -0300 Subject: [PATCH] FIX: Don't run yarn install as root --- image/base/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/base/Dockerfile b/image/base/Dockerfile index e89e61b..a8b4082 100644 --- a/image/base/Dockerfile +++ b/image/base/Dockerfile @@ -140,6 +140,6 @@ RUN useradd discourse -s /bin/bash -m -U &&\ chown -R discourse:discourse /var/www/discourse &&\ cd /var/www/discourse &&\ sudo -u discourse bundle install --deployment --jobs 4 --without test development &&\ - yarn install &&\ + sudo -u discourse yarn install &&\ bundle exec rake maxminddb:get &&\ find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} + -- 2.25.1