Mananjp commited on
Commit
ebb5c56
ยท
1 Parent(s): 408eabd

fix: change huggingface space SDK to docker

Browse files
Files changed (2) hide show
  1. Dockerfile.backend +2 -1
  2. README.md +1 -3
Dockerfile.backend CHANGED
@@ -43,4 +43,5 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
43
  CMD python -c "import urllib.request, os; port=os.environ.get('PORT', '8000'); urllib.request.urlopen(f'http://127.0.0.1:{port}/health')" || exit 1
44
 
45
  # Run the application using the dynamic PORT provided by the platform (e.g. Railway)
46
- CMD sh -c "uvicorn main:app --host 0.0.0.0 --port ${PORT:-8000}"
 
 
43
  CMD python -c "import urllib.request, os; port=os.environ.get('PORT', '8000'); urllib.request.urlopen(f'http://127.0.0.1:{port}/health')" || exit 1
44
 
45
  # Run the application using the dynamic PORT provided by the platform (e.g. Railway)
46
+ # Use :: to listen on all interfaces (IPv4 + IPv6) โ€” Railway routes via IPv6 internally
47
+ CMD sh -c "uvicorn main:app --host :: --port ${PORT:-8000}"
README.md CHANGED
@@ -3,9 +3,7 @@ title: Examide
3
  emoji: ๐Ÿ“Š
4
  colorFrom: gray
5
  colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 6.10.0
8
- app_file: app.py
9
  pinned: false
10
  ---
11
 
 
3
  emoji: ๐Ÿ“Š
4
  colorFrom: gray
5
  colorTo: indigo
6
+ sdk: docker
 
 
7
  pinned: false
8
  ---
9