minzo456 commited on
Commit
46a6c5b
·
verified ·
1 Parent(s): f414ed4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -3
Dockerfile CHANGED
@@ -1,11 +1,18 @@
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
- # app.py:app එකේදී app.py එක module එකක ිදියට හඳුනාගන port එකත් එකමෙහෙම දේන
11
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
+ # 🔱 Python 3.9 පාවිච්චි කරමු
2
+ FROM python:3.9
3
 
4
+ # 🔱 පද්ධතියේ වැඩ කරන තැන (Working Directory)
5
  WORKDIR /code
6
 
7
+ # 🔱 අවශ්‍ය Requirements මුලින්ම Copy කරමු
8
  COPY ./requirements.txt /code/requirements.txt
9
+
10
+ # 🔱 ලයිබ්‍රරි Install කිරීම
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
+ # 🔱 ඉතිරි සියලුම කේතයන් Copy කිරීම
14
  COPY . .
15
 
16
+ # 🔱 Flask සර්ව් එක පණගැනවීියෝගය
17
+ # මෙහිදී uvicorn වෙනුවට සෘජුවම python පාවිච්චි කරනවා
18
+ CMD ["python", "app.py"]