Spaces:
Sleeping
Sleeping
Commit ·
484e2ed
1
Parent(s): 0e7fa14
dockerfile updated
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -5,12 +5,18 @@ WORKDIR /app
|
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
libgl1 \
|
| 7 |
libglib2.0-0 \
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
COPY requirements.txt .
|
| 11 |
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
|
|
|
|
|
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
EXPOSE 7860
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
libgl1 \
|
| 7 |
libglib2.0-0 \
|
| 8 |
+
libsm6 \
|
| 9 |
+
libxext6 \
|
| 10 |
+
libxrender1 \
|
| 11 |
+
libgomp1 \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
COPY requirements.txt .
|
| 15 |
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
+
RUN python -c "from paddleocr import PaddleOCR; PaddleOCR(use_gpu=False, lang='en')"
|
| 19 |
+
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
EXPOSE 7860
|