fix: change huggingface space SDK to docker
Browse files- Dockerfile.backend +2 -1
- 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 |
-
|
|
|
|
|
|
| 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:
|
| 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 |
|