diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh index 5b2cd39e5c..fe00503d6d 100755 --- a/debian/rake-tasks.sh +++ b/debian/rake-tasks.sh @@ -43,7 +43,7 @@ cd /var/lib/gitlab runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/.cache' runuser -u ${gitlab_user} -- sh -c 'yarnpkg set version berry' runuser -u ${gitlab_user} -- sh -c 'if ! grep nodeLinker .yarnrc.yml >/dev/null; then echo "nodeLinker: \"node-modules\"" >>.yarnrc.yml; fi' -runuser -u ${gitlab_user} -- sh -c 'yarnpkg install' +runuser -u ${gitlab_user} -- sh -c 'NODE_ENV=production yarnpkg install --immutable' # Remove write permissions of .yarn-metadata.json files runuser -u ${gitlab_user} -- sh -c 'test -d "/var/lib/gitlab/.cache/yarn/v6" && find /var/lib/gitlab/.cache/yarn/v6/ -name .yarn-metadata.json -perm -a=w -exec chmod 644 {} \;'