aliroohan179 commited on
Commit
e1929e8
·
1 Parent(s): c22b8c7

Updated docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -23,7 +23,9 @@ RUN pip install --no-cache-dir -r requirements.txt
23
  COPY . .
24
 
25
  # Expose port
26
- EXPOSE 5000
27
 
 
 
28
  # Start Flask app using gunicorn
29
- CMD ["gunicorn", "main:app", "--bind", "0.0.0.0:5000"]
 
23
  COPY . .
24
 
25
  # Expose port
26
+ EXPOSE 7860
27
 
28
+ ENV PYTHONUNBUFFERED=1
29
+ ENV FLASK_APP=app.py
30
  # Start Flask app using gunicorn
31
+ CMD ["python", "app.py"]