rabiyulfahim commited on
Commit
ccf7bb3
·
verified ·
1 Parent(s): e7f4f77

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -23,8 +23,8 @@ 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
- # Run FastAPI with Uvicorn
30
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
23
  AutoTokenizer.from_pretrained(model_id, cache_dir='/tmp'); \
24
  AutoModelForCausalLM.from_pretrained(model_id, cache_dir='/tmp')"
25
 
26
+ # Expose the correct port (Hugging Face default is 7860)
27
+ EXPOSE 7860
28
 
29
+ # Command to run the app
30
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]