FROM python:slim
COPY . /usr/src/app
WORKDIR /usr/src/app
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