AdarshJi commited on
Commit
04ca830
·
verified ·
1 Parent(s): 39bfc85

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -10,8 +10,8 @@ COPY . /app
10
  # Install the required dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Expose port 7860 for Hugging Face Spaces
14
- EXPOSE 7860
15
 
16
- # Command to run the app using Gunicorn
17
- CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]
 
10
  # Install the required dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Expose the port for Hypercorn
14
+ EXPOSE 8000
15
 
16
+ # Command to run the app using Hypercorn
17
+ CMD ["python", "-m", "hypercorn", "app:app", "--bind", "0.0.0.0:8000"]