Merge branch '60-reporting-make-output-pdf-less-basic-and-more-advanced' into 'master'
[pub/jan/aic18.git] / service-analysis / Dockerfile
index 976abd116501890f71027063d4323dba04e06127..be70c7c4eb2136b3b72f309eb7c74176110eb7e3 100644 (file)
@@ -1,13 +1,13 @@
-FROM   python:3
+FROM   python:3.7-slim
 LABEL  maintainer="Sebastian Steiner"
 
-RUN            pip install flask
-RUN            pip install flask_restful
-RUN            pip install indicoio
-
 WORKDIR        /app
 COPY   . /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"]