VikaskumarDas commited on
Commit
1079832
·
verified ·
1 Parent(s): d339ffb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -1,15 +1,11 @@
1
- # পাইথনের অফিশিয়াল ইমেজ ব্যবহার করা হচ্ছে
2
  FROM python:3.10-slim
3
 
4
- # কন্টেইনারের ভেতর ওয়ার্কিং ডিরেক্টরি সেট করা
5
  WORKDIR /code
6
 
7
- # ডিপেন্ডেন্সি ফাইল কপি এবং ইনস্টল করা
8
  COPY ./requirements.txt /code/requirements.txt
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
 
11
- # সব কোড ফাইল কন্টেইনারে কপি করা
12
  COPY . .
13
 
14
- # FastAPI অ্যাপকে Hugging Face-এর পোর্ট ৭৮৬০ তে রান করার নির্দেশ
15
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /code
4
 
 
5
  COPY ./requirements.txt /code/requirements.txt
6
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
7
 
 
8
  COPY . .
9
 
10
+ # --root-path এবং uvicorn এর ফাইল সার্ভিং ডিরেক্টরি অপ্টিমাইজ করা হলো
11
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--forwarded-allow-ips='*'"]