[06.03.20] naming of file override package download function

This commit is contained in:
andrewso 2020-03-06 12:28:22 +00:00
parent 952fb0d5aa
commit cfc21e360f
3 changed files with 8 additions and 7 deletions

View File

@ -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"]

View File

@ -1,6 +0,0 @@
#!/usr/bin/env python
import nltk
nltk.download('punkt')
nltk.download('stopwords')

View File

@ -0,0 +1,7 @@
#!/usr/bin/env python
import nltk
if __name__ == '__main__':
nltk.download('punkt')
nltk.download('stopwords')