math-scan-processor / Dockerfile
sh4lu-z's picture
Create Dockerfile
499dd35 verified
raw
history blame contribute delete
509 Bytes
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"]