Commit 4c63602
committed
Fix HuggingFace and NLTK cache PermissionError in Docker
The entrypoint uses `su -p app` which preserves HOME=/root from the
root user. HuggingFace and NLTK default to ~/cache paths, resolving
to /root/ which the app user cannot write to.
Set HF_HOME and NLTK_DATA env vars to writable directories owned by
the app user.1 parent 32fc459 commit 4c63602
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments