alessandro trinca tornidor
commited on
Commit
·
93c3238
1
Parent(s):
034f3ea
ci: try re-adding steps for download of nltk packages during docker build, without explicit NLTK_DATA on the download commands
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
|
@@ -19,6 +19,7 @@ WORKDIR ${HOME}
|
|
| 19 |
|
| 20 |
RUN mkdir ${HOME}/lite.koboldai.net && chown python:python ${HOME}/lite.koboldai.net
|
| 21 |
RUN mkdir ${HOME}/my_ghost_writer && chown python:python -R ${HOME}/my_ghost_writer
|
|
|
|
| 22 |
RUN mkdir -p ${NLTK_DATA} && chown python:python -R ${NLTK_DATA}
|
| 23 |
RUN ls -lAd ${NLTK_DATA} ${NLTK_DATA}/*
|
| 24 |
RUN ls -lA ${HOME}/
|
|
@@ -54,6 +55,9 @@ RUN ls -l ${HOME}
|
|
| 54 |
RUN ls -ld ${HOME}
|
| 55 |
RUN ls -l ${HOME}/
|
| 56 |
RUN python -c "import sys; print(sys.path)"
|
|
|
|
|
|
|
|
|
|
| 57 |
RUN python -c "import spacy"
|
| 58 |
RUN echo "python -m spacy download \"${SPACY_MODEL}\""
|
| 59 |
RUN python -m spacy download "${SPACY_MODEL}"
|
|
@@ -65,6 +69,9 @@ RUN df -h
|
|
| 65 |
RUN ls -l ${HOME}/my_ghost_writer/app.py
|
| 66 |
RUN ls -l ${HOME}/static/index.html
|
| 67 |
RUN ls -l ${HOME}/lite.koboldai.net/index.html
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
USER 999
|
| 70 |
EXPOSE 7860
|
|
|
|
| 19 |
|
| 20 |
RUN mkdir ${HOME}/lite.koboldai.net && chown python:python ${HOME}/lite.koboldai.net
|
| 21 |
RUN mkdir ${HOME}/my_ghost_writer && chown python:python -R ${HOME}/my_ghost_writer
|
| 22 |
+
RUN echo "NLTK_DATA: '${NLTK_DATA}'"
|
| 23 |
RUN mkdir -p ${NLTK_DATA} && chown python:python -R ${NLTK_DATA}
|
| 24 |
RUN ls -lAd ${NLTK_DATA} ${NLTK_DATA}/*
|
| 25 |
RUN ls -lA ${HOME}/
|
|
|
|
| 55 |
RUN ls -ld ${HOME}
|
| 56 |
RUN ls -l ${HOME}/
|
| 57 |
RUN python -c "import sys; print(sys.path)"
|
| 58 |
+
RUN python -c "import nltk; nltk.download('punkt_tab', quiet=False)"
|
| 59 |
+
RUN python -c "import nltk; nltk.download('wordnet', quiet=False)"
|
| 60 |
+
RUN python -c "import nltk; nltk.download('wordnet31', quiet=False)"
|
| 61 |
RUN python -c "import spacy"
|
| 62 |
RUN echo "python -m spacy download \"${SPACY_MODEL}\""
|
| 63 |
RUN python -m spacy download "${SPACY_MODEL}"
|
|
|
|
| 69 |
RUN ls -l ${HOME}/my_ghost_writer/app.py
|
| 70 |
RUN ls -l ${HOME}/static/index.html
|
| 71 |
RUN ls -l ${HOME}/lite.koboldai.net/index.html
|
| 72 |
+
RUN chown python:python -R ${NLTK_DATA}
|
| 73 |
+
RUN ls -ld ${NLTK_DATA}
|
| 74 |
+
RUN find ${NLTK_DATA} -ls
|
| 75 |
|
| 76 |
USER 999
|
| 77 |
EXPOSE 7860
|