From 70dd331d01ff3c1a40b3d0cb27f31c690142f4ce Mon Sep 17 00:00:00 2001 From: Anton Sviridov Date: Wed, 26 Jun 2024 11:53:53 +0100 Subject: [PATCH] Can't write to .yarnrc either... --- dev/docker-entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev/docker-entrypoint.sh b/dev/docker-entrypoint.sh index fb1ccb64..bf14be11 100755 --- a/dev/docker-entrypoint.sh +++ b/dev/docker-entrypoint.sh @@ -6,7 +6,10 @@ set -xeuo pipefail # of issues when mounting node_modules inside the docker container AND running # it under non-root user. -echo "--modules-folder $HOME/my-node-modules" > .yarnrc +# Symlinking won't work: https://github.com/yarnpkg/yarn/issues/8079#issuecomment-622817604 +# node_modules mounting is a known issue: https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder + +echo "--modules-folder $HOME/my-node-modules" > $HOME/.yarnrc export PATH="$PATH:$HOME/my-node-modules/.bin" export NODE_PATH="$HOME/my-node-modules"