Ritesh-hf commited on
Commit
04545f6
·
verified ·
1 Parent(s): fd9eea9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -25,12 +25,8 @@ RUN pip install --no-cache-dir -r requirements.txt
25
  # Copy the rest of the application code
26
  COPY --chown=user . /app
27
 
28
- # Set the environment variable for Flask
29
- ENV FLASK_APP=app.py
30
- ENV FLASK_ENV=production
31
 
32
- # Expose the port that the Flask app runs on
33
- EXPOSE 8080
34
-
35
- # Set the command to start the application using Gunicorn with Eventlet
36
- CMD ["python", "app.py"]
 
25
  # Copy the rest of the application code
26
  COPY --chown=user . /app
27
 
28
+ # Expose the port your Flask app runs on
29
+ EXPOSE 5000
 
30
 
31
+ # Run the Flask app using Gunicorn
32
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]