File size: 525 Bytes
499dd35
 
 
 
 
 
 
 
 
 
 
 
 
 
4b5c189
 
499dd35
9a39bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.9

WORKDIR /code

# dependencies ඉන්ස්ටෝල් කිරීම
COPY ./requirements.txt /code/requirements.txt
run pip install --no-cache-dir --upgrade -r /code/requirements.txt

# OpenGL libraries (OpenCV වලට ඕන කරන කෑලි)
RUN apt-get update && apt-get install -y libgl1-mesa-glx

# ෆයිල් ටික කොපි කිරීම
COPY . .

print("Stop")

# ඇප් එක රන් කිරීම
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]