anton-priestley commited on
Commit
96578ea
·
1 Parent(s): 2ac472f

Change default port for this dev instance

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app.py +1 -1
Dockerfile CHANGED
@@ -36,11 +36,11 @@ RUN mkdir -p /tmp/transformers_cache /tmp/hf_home /tmp/torch_home && \
36
  USER user
37
 
38
  # Expose the port (Standard for HF Spaces)
39
- EXPOSE 7860
40
 
41
  # Set environment variables
42
  ENV FLASK_HOST=0.0.0.0
43
- ENV FLASK_PORT=7860
44
  ENV FLASK_DEBUG=False
45
 
46
  # CRITICAL: Set HF-specific env vars to writable directories
 
36
  USER user
37
 
38
  # Expose the port (Standard for HF Spaces)
39
+ EXPOSE 7861
40
 
41
  # Set environment variables
42
  ENV FLASK_HOST=0.0.0.0
43
+ ENV FLASK_PORT=7861
44
  ENV FLASK_DEBUG=False
45
 
46
  # CRITICAL: Set HF-specific env vars to writable directories
app.py CHANGED
@@ -408,5 +408,5 @@ def status_route():
408
  })
409
 
410
  if __name__ == '__main__':
411
- port = int(os.environ.get("PORT", 7860))
412
  app.run(host='0.0.0.0', port=port)
 
408
  })
409
 
410
  if __name__ == '__main__':
411
+ port = int(os.environ.get("PORT", 7861))
412
  app.run(host='0.0.0.0', port=port)