sga123 commited on
Commit
9b74c7c
·
verified ·
1 Parent(s): de01370

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -15,9 +15,11 @@ RUN pip install --no-cache-dir -r requirements.txt
15
  # - `-b 0.0.0.0:7860`: Binds the server to port 7860 on all network interfaces
16
  # - `app:app`: Runs the Flask app (assuming `app.py` contains the Flask instance named `app`)
17
 
 
18
 
19
- # Expose the port Streamlit listens on (default is 8501)
20
- EXPOSE 8501
 
21
 
22
  # Command to run the Streamlit application
23
- CMD ["streamlit", "run", "app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]
 
15
  # - `-b 0.0.0.0:7860`: Binds the server to port 7860 on all network interfaces
16
  # - `app:app`: Runs the Flask app (assuming `app.py` contains the Flask instance named `app`)
17
 
18
+ EXPOSE 500
19
 
20
+ # Run the Flask application using Gunicorn for production or Flask's dev server for development
21
+ # For production using Gunicorn:
22
+ CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"] # Replace with your main Flask application file name and app instance name
23
 
24
  # Command to run the Streamlit application
25
+ ###CMD ["streamlit", "run", "app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]