triflix commited on
Commit
226bbbd
·
verified ·
1 Parent(s): c0ef6e3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -7,11 +7,11 @@ WORKDIR /app
7
  COPY requirements.txt .
8
  RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
9
 
10
- # Copy the rest of the application code
11
  COPY . .
12
 
13
- # Expose port 80 for the app
14
  EXPOSE 7860
15
 
16
- # Run the application with Uvicorn
17
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
7
  COPY requirements.txt .
8
  RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
9
 
10
+ # Copy the application code
11
  COPY . .
12
 
13
+ # Expose port 7860 (required for Hugging Face Spaces)
14
  EXPOSE 7860
15
 
16
+ # Run the application with Uvicorn on port 7860
17
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]