kmuthudurai commited on
Commit
b65e620
·
verified ·
1 Parent(s): 0ebe1aa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -3,15 +3,12 @@ FROM python:3.10
3
  ENV CUDA_VISIBLE_DEVICES=-1
4
  ARG PIP_NO_CACHE_DIR=1
5
 
6
- # Install libssl3 for OpenSSL 3 compatibility
7
- RUN apt-get update && apt-get install -y libssl3
8
 
9
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
10
- RUN pip install paddlepaddle==2.5.1 -i https://mirror.baidu.com/pypi/simple
11
  RUN pip install transformers gradio Pillow fastapi
12
- RUN pip install paddleocr==2.7.0.3 \
13
- && pip uninstall -y opencv-python opencv-contrib-python \
14
- && pip install opencv-python-headless
15
 
16
  RUN useradd -m -u 1000 user
17
  USER user
 
3
  ENV CUDA_VISIBLE_DEVICES=-1
4
  ARG PIP_NO_CACHE_DIR=1
5
 
6
+ # Install paddlepaddle (latest stable version)
7
+ RUN pip install paddlepaddle -i https://pypi.org/simple
8
 
9
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
 
10
  RUN pip install transformers gradio Pillow fastapi
11
+ RUN pip install paddleocr==2.7.0.3 && pip uninstall -y opencv-python opencv-contrib-python && pip install opencv-python-headless
 
 
12
 
13
  RUN useradd -m -u 1000 user
14
  USER user