Skip to content

Commit

Permalink
Can't write to .yarnrc either...
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Jun 26, 2024
1 parent 45cdad9 commit 70dd331
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 70dd331

Please sign in to comment.