Commit 41620f8
fix(docker): download UniDic dict at build to fix MarkAccent 500
The `unidic` pip package ships the loader but not the ~770MB dicdir, so
fugashi.Tagger() failed at runtime (missing mecabrc) and /api/MarkAccent/
returned 500. Run `unidic download` in the builder stage; the venv copy
into the final image carries the dict along.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0dae8fb commit 41620f8
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
0 commit comments