Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|