-FROM python:3
-LABEL maintainer="Sebastian Steiner"
-
-RUN pip install flask
-RUN pip install flask_restful
-RUN pip install indicoio
+FROM python:3.7-slim
+LABEL maintainer="Sebastian Steiner <sebastian.steiner@tuwien.ac.at>"
WORKDIR /app
-COPY . /app/
+COPY *.py /app/
+COPY *.txt /app/
+
+RUN pip install -r requirements.txt
+
+RUN python -m textblob.download_corpora
RUN chmod a+x *.py
-CMD ["python3", "./sentiment_analysis.py"]
+CMD ["python3.7", "./sentiment_analysis.py"]