amadmateen commited on
Commit
07bb26b
·
1 Parent(s): c788100

Fix: Set FLASK_PORT=7860 environment variable in Dockerfile for Hugging Face Spaces compatibility

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -28,6 +28,7 @@ COPY --chown=user requirements.txt /app/
28
  # 6. Switch to the Hugging Face user safely now that permissions are locked down
29
  USER user
30
  ENV PATH="/home/user/.local/bin:$PATH"
 
31
 
32
  RUN pip install --no-cache-dir --upgrade pip && \
33
  pip install --no-cache-dir -r requirements.txt
 
28
  # 6. Switch to the Hugging Face user safely now that permissions are locked down
29
  USER user
30
  ENV PATH="/home/user/.local/bin:$PATH"
31
+ ENV FLASK_PORT=7860
32
 
33
  RUN pip install --no-cache-dir --upgrade pip && \
34
  pip install --no-cache-dir -r requirements.txt