Spaces:
Running
Running
File size: 509 Bytes
499dd35 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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 . .
# ඇප් එක රන් කිරීම
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |