Merge branch '49-upload-all-containers-to-public-repo-in-docker-hub' into 'master'
[pub/jan/aic18.git] / service-analysis / Dockerfile
index 976abd116501890f71027063d4323dba04e06127..508af5e584e4debe78a7440ed2d578b1407a1431 100644 (file)
@@ -1,13 +1,14 @@
-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"]