diff --git a/Dockerfile b/Dockerfile index 692795a..4c87b45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,5 +7,5 @@ RUN pip3 install -r requirements.txt COPY . /app/ EXPOSE 5000 -CMD ["python","app.py"] +CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"] diff --git a/utils/createDf.py b/utils/createDf.py index fa6d1b9..ca87189 100644 --- a/utils/createDf.py +++ b/utils/createDf.py @@ -11,8 +11,6 @@ def createDf(requestFiles): df = read_excel(file,dtype=str) elif (file.filename.endswith(".ods")): df = read_excel(file,engine="odf",dtype=str) - elif file.filename.endswith(".json"): - df = read_json(file, dtype=str) else: return False,"Please upload valid file format"