FROM python:3.7 MAINTAINER Andrew Sotheran RUN apt update -y && \ apt install -y python3-pip && \ pip3 install nltk numpy sklearn flask pandas && \ rm -rf /var/lib/apt/lists/* COPY . /home/spam-filter/. RUN python3 /home/spam-filter/configuration/scripts/nltk_package_downloads.py EXPOSE 9090 CMD ["python", "/home/spam-filter/src/main.py"]