chenhaoq87 commited on
Commit
ae4fc42
·
verified ·
1 Parent(s): 5cee878

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -21,12 +21,8 @@ RUN pip install --no-cache-dir --upgrade pip && \
21
  COPY app.py .
22
  COPY model/ model/
23
 
24
- # Expose port
25
- EXPOSE 8000
26
-
27
- # Health check
28
- HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
29
- CMD python -c "import requests; requests.get('http://localhost:8000/health')"
30
 
31
  # Run the application
32
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
21
  COPY app.py .
22
  COPY model/ model/
23
 
24
+ # Expose port (HuggingFace Spaces default)
25
+ EXPOSE 7860
 
 
 
 
26
 
27
  # Run the application
28
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]