Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -23,8 +23,9 @@ RUN python -c "from transformers import AutoTokenizer, AutoModelForCausalLM; \
|
|
| 23 |
AutoTokenizer.from_pretrained(model_id, cache_dir='/tmp'); \
|
| 24 |
AutoModelForCausalLM.from_pretrained(model_id, cache_dir='/tmp')"
|
| 25 |
|
| 26 |
-
# Expose FastAPI port
|
| 27 |
-
EXPOSE 8000
|
| 28 |
|
| 29 |
-
#
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
AutoTokenizer.from_pretrained(model_id, cache_dir='/tmp'); \
|
| 24 |
AutoModelForCausalLM.from_pretrained(model_id, cache_dir='/tmp')"
|
| 25 |
|
|
|
|
|
|
|
| 26 |
|
| 27 |
+
# Expose the correct port (Hugging Face default is 7860)
|
| 28 |
+
EXPOSE 7860
|
| 29 |
+
|
| 30 |
+
# Command to run the app
|
| 31 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|