Skip to content

Commit

Permalink
Add nltk download, add folder for file upload (deepset-ai#1633)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timoeller committed Oct 22, 2021
1 parent 9dc125d commit 6da2c73
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ COPY setup.py requirements.txt README.md /home/user/
RUN pip install -r requirements.txt
RUN pip install -e .

# download punkt tokenizer to be included in image
RUN python3 -c "import nltk;nltk.download('punkt', download_dir='/usr/nltk_data')"

# create folder for /file-upload API endpoint with write permissions, this might be adjusted depending on FILE_UPLOAD_PATH
RUN mkdir -p /home/user/file-upload
RUN chmod 666 /home/user/file-upload

# copy saved models
COPY README.md models* /home/user/models/

Expand Down
7 changes: 7 additions & 0 deletions Dockerfile-GPU
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ RUN pip3 install faiss-cpu==1.6.3
RUN pip3 install -r requirements.txt
RUN pip3 install -e .

# download punkt tokenizer to be included in image
RUN python3 -c "import nltk;nltk.download('punkt', download_dir='/usr/nltk_data')"

# create folder for /file-upload API endpoint with write permissions, this might be adjusted depending on FILE_UPLOAD_PATH
RUN mkdir -p /home/user/file-upload
RUN chmod 666 /home/user/file-upload

# copy saved models
COPY README.md models* /home/user/models/

Expand Down

0 comments on commit 6da2c73

Please sign in to comment.