Browse Source

Minor fixes in Dockerfile

khvilaboa 5 years ago
parent
commit
08af1d8473
3 changed files with 9 additions and 5 deletions
  1. 5 4
      Dockerfile
  2. 3 0
      clean.sh
  3. 1 1
      web_service/web_service.py

+ 5 - 4
Dockerfile

@@ -2,6 +2,7 @@ FROM ubuntu:18.04
 
 RUN apt-get update && apt-get install -y \
   build-essential \
+  cmake \
   git \
   openjdk-11-jdk-headless \
   libboost-all-dev \
@@ -19,9 +20,9 @@ COPY events_devstone.txt clean.sh setup.sh devstone_comparative.py .gitmodules /
 RUN pip3 install setuptools flask
 
 WORKDIR /root/devstone_comparative
-RUN ./setup.py
+RUN ./clean.sh
+RUN ./setup.sh
 
-WORKDIR /root/devstone_comparative/web_service
-RUN python3 manage.py -i -a test
-RUN python3 web_service.py
+RUN python3 web_service/manage.py -i -a test
+ENTRYPOINT python3 web_service/web_service.py
 

+ 3 - 0
clean.sh

@@ -2,3 +2,6 @@ rm -rf simulators
 
 rm -rf devstone/*/build
 
+rm -f web_service/db.sqlite
+
+

+ 1 - 1
web_service/web_service.py

@@ -145,4 +145,4 @@ if __name__ == '__main__':
     if not os.path.exists('results'):
         os.makedirs('results')
         
-    app.run(debug=True, port=8080)
+    app.run(debug=True, host="0.0.0.0", port=8080)