From cfa5cfa04b6525ec4f31622cf40545d7f0c74c9e Mon Sep 17 00:00:00 2001 From: Ismael Posada Trobo <ismael.posada.trobo@cern.ch> Date: Thu, 2 Sep 2021 12:04:16 +0200 Subject: [PATCH] DEV: Clean yarn cache after yarn install (https://github.com/discourse/discourse_docker/commit/b259c8d38e0f42288fd279c9f9efd3cefbc2c1cb) --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5d962ba..534f26e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -111,6 +111,8 @@ RUN \ ### Gem installation RUN exec bundle install --deployment --jobs 4 --without test --without development && \ + # Do not install yarn as root, it comes from the base image. + yarn cache clean && \ exec bundle exec rake maxminddb:get && \ find /discourse/vendor/bundle -name tmp -type d -exec rm -rf {} + -- GitLab