Raybilhelp commited on
Commit
2f67d35
·
verified ·
1 Parent(s): 3c39fc9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -1,11 +1,15 @@
1
- FROM python:3.9
2
 
3
- WORKDIR /code
4
 
5
- COPY ./requirements.txt /code/requirements.txt
 
 
6
 
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
8
 
9
- COPY . .
 
10
 
11
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10-slim
2
 
3
+ WORKDIR /app
4
 
5
+ # প্রথমে requirements.txt কপি করে ডিপেন্ডেন্সি ইনস্টল করা
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # মূল কোড কপি করা
10
+ COPY app.py .
11
 
12
+ # হাগিংফেস স্পেসের জন্য পোর্ট ৭৮৬০ ওপেন করা
13
+ EXPOSE 7860
14
 
15
+ CMD ["python", "app.py"]