[06.03.20] naming of file override package download function
This commit is contained in:
parent
952fb0d5aa
commit
cfc21e360f
@ -6,5 +6,5 @@ RUN apt update -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
COPY . /home/spam-filter/.
|
||||
EXPOSE 9090
|
||||
CMD ["python", "/home/spam-filter/configuration/scripts/nltk.py"]
|
||||
CMD ["python", "/home/spam-filter/configuration/scripts/nltk_package_downloads.py"]
|
||||
CMD ["python", "/home/spam-filter/src/main.py"]
|
||||
@ -1,6 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import nltk
|
||||
|
||||
nltk.download('punkt')
|
||||
nltk.download('stopwords')
|
||||
7
configuration/scripts/nltk_package_downloads.py
Normal file
7
configuration/scripts/nltk_package_downloads.py
Normal file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import nltk
|
||||
|
||||
if __name__ == '__main__':
|
||||
nltk.download('punkt')
|
||||
nltk.download('stopwords')
|
||||
Loading…
x
Reference in New Issue
Block a user