Phoenix21 commited on
Commit
ed5d2cb
·
verified ·
1 Parent(s): 1ebaed9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -24,8 +24,11 @@ RUN pip install --no-cache-dir --upgrade pip && \
24
  # Copy the rest of the application code
25
  COPY --chown=user . /app
26
 
27
- # Expose port 7860 (Hugging Face Spaces expects this port)
28
  EXPOSE 7860
29
 
 
 
 
30
  # Start the FastAPI app using uvicorn via python -m
31
  CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
24
  # Copy the rest of the application code
25
  COPY --chown=user . /app
26
 
27
+ # Expose port 7860 (required by Hugging Face Spaces)
28
  EXPOSE 7860
29
 
30
+ # Optional: Add a label so that Spaces knows which port to use for embedding
31
+ LABEL HF_SPACE_PORT=7860
32
+
33
  # Start the FastAPI app using uvicorn via python -m
34
  CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]