rabiyulfahim commited on
Commit
3fc6ddb
·
verified ·
1 Parent(s): ba43a18

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # 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
 
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"]