Re-based to Slim, reduced NTLK corpus dependencies

Image now has a much smaller footprint of ca 300 MB rather than 9 GB
This commit is contained in:
2021-08-06 10:06:19 +01:00
parent 272ecf80a5
commit 356bbbc5c9
7 changed files with 19 additions and 13 deletions

View File

@ -1,7 +1,7 @@
FROM python:slim
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN python -m nltk.downloader all
RUN pip install --upgrade pip && pip install -r requirements.txt && \
apt-get autoremove -y
RUN python -m nltk.downloader wordnet
CMD python3 -u ./script.py