diff --git a/Dockerfile b/Dockerfile index f0c7f55..d3b7c18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ COPY app.py app.py COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt RUN pip3 install -U flask-cors -CMD ["flask", "run"] \ No newline at end of file +CMD ["gunicorn", "-b", ":5000", "app:app"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index c4796ff..1ed6d31 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ minio boto3 flask-cors mysql-connector-python -requests \ No newline at end of file +requests +gunicorn \ No newline at end of file