Elalimy commited on
Commit
67eb2b5
·
verified ·
1 Parent(s): 58e8043

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -4,7 +4,7 @@ FROM python:3.9-slim
4
  # Set environment variables
5
  ENV FLASK_APP=app.py
6
  ENV FLASK_RUN_HOST=0.0.0.0
7
- # Note: FLASK_RUN_PORT is not used by Gunicorn, it's kept for possible future reference.
8
 
9
  # Install ffmpeg and other dependencies
10
  RUN apt-get update && \
@@ -24,5 +24,5 @@ RUN pip install --no-cache-dir -r requirements.txt
24
  # Expose the port on which the app will run
25
  EXPOSE 80
26
 
27
- # Run the Flask app with Gunicorn
28
- CMD ["gunicorn", "--bind", "0.0.0.0:80", "app:app"]
 
4
  # Set environment variables
5
  ENV FLASK_APP=app.py
6
  ENV FLASK_RUN_HOST=0.0.0.0
7
+ ENV FLASK_RUN_PORT=80
8
 
9
  # Install ffmpeg and other dependencies
10
  RUN apt-get update && \
 
24
  # Expose the port on which the app will run
25
  EXPOSE 80
26
 
27
+ # Run the Flask app
28
+ CMD ["flask", "run"]