Spaces:
Build error
Build error
copy app.py to docker and fix opencv
Browse files5 unmodified lines6789101112131415151617181920212223242526275 unmodified lines && apt-get install -y tesseract-ocr \ && rm -rf /var/lib/apt/lists/*
# libssl1.1 for PaddlePaddleRUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb \ && dpkg -i libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb \ && rm libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb
RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpuRUN pip install paddlepaddle==2.5.1 -i https://mirror.baidu.com/pypi/simpleRUN pip install transformers pytesseract paddleocr gradio PillowRUN pip install transformers pytesseract gradio PillowRUN pip install paddleocr==2.7.0.3 \ && pip uninstall -y opencv-python opencv-contrib-python \ && pip install opencv-python-headless
RUN useradd -m -u 1000 userUSER userENV HOME=/home/userWORKDIR $HOME/appCOPY --chown=user . $HOME/app
CMD ["python", "app.py"]Dockerfile+11-1