kmuthudurai commited on
Commit
b43ecb8
·
verified ·
1 Parent(s): 9ebaadd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -12,6 +12,8 @@ RUN pip install paddlepaddle -i https://pypi.org/simple
12
  # Install dependencies
13
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
14
  RUN pip install transformers gradio Pillow fastapi
 
 
15
  RUN pip install paddleocr==2.7.0.3 && pip uninstall -y opencv-python opencv-contrib-python && pip install opencv-python
16
 
17
  RUN useradd -m -u 1000 user
 
12
  # Install dependencies
13
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
14
  RUN pip install transformers gradio Pillow fastapi
15
+ # Install libGL (needed for OpenCV)
16
+ RUN apt-get update && apt-get install -y libgl1
17
  RUN pip install paddleocr==2.7.0.3 && pip uninstall -y opencv-python opencv-contrib-python && pip install opencv-python
18
 
19
  RUN useradd -m -u 1000 user