chmod site-packages to try to fix nltk download stopwords runtime error
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -17,4 +17,6 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
17 |
RUN python -c "import nltk; nltk.download('stopwords')"
|
18 |
# ^ to fix runtime error, see https://github.com/run-llama/llama_index/issues/10681
|
19 |
|
|
|
|
|
20 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
17 |
RUN python -c "import nltk; nltk.download('stopwords')"
|
18 |
# ^ to fix runtime error, see https://github.com/run-llama/llama_index/issues/10681
|
19 |
|
20 |
+
RUN sudo chmod -R 777 /usr/local/lib/python3.10/site-packages
|
21 |
+
|
22 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|