Prechádzať zdrojové kódy

Update Docker files and requirements.txt

oscarleiva 7 rokov pred
rodič
commit
19c681d8d1

+ 1 - 0
flask_api/Dockerfile

@@ -6,6 +6,7 @@ RUN mkdir -p /usr/src/app
 COPY requirements.txt /usr/src/app
 RUN pip install --upgrade pip
 RUN pip install -r /usr/src/app/requirements.txt
+RUN pip install gunicorn
 
 COPY ./app /usr/src/app
 

+ 1 - 1
flask_api/docker-compose.yml

@@ -7,7 +7,7 @@ services:
       context: ./
     ports:
       - "8001:8001"
-    command: /usr/local/bin/gunicorn -w 2 -b :8001 server:app
+    command: gunicorn --log-level=info -w 2 -b :8001 server:app
 
   nginx:
     restart: always

+ 1 - 0
flask_api/requirements.txt

@@ -1,3 +1,4 @@
 numpy==1.15.4
 Flask==1.0.2
 pandas==0.23.4
+scikit-learn==0.20.1