Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
@@ -3,14 +3,13 @@ FROM python:3.10-slim
|
|
3 |
|
4 |
ENV HF_HOME=/tmp/huggingface
|
5 |
ENV TORCH_HOME=/tmp/torch
|
6 |
-
ENV EASYOCR_HOME=/tmp/.easyocr
|
7 |
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
libgl1 \
|
10 |
libglib2.0-0 \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
# ✅ Fix permission for EasyOCR before copying source
|
14 |
RUN mkdir -p /tmp/.easyocr && chmod -R 777 /tmp/.easyocr
|
15 |
|
16 |
WORKDIR /app
|
|
|
3 |
|
4 |
ENV HF_HOME=/tmp/huggingface
|
5 |
ENV TORCH_HOME=/tmp/torch
|
6 |
+
ENV EASYOCR_HOME=/tmp/.easyocr
|
7 |
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
libgl1 \
|
10 |
libglib2.0-0 \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
|
|
13 |
RUN mkdir -p /tmp/.easyocr && chmod -R 777 /tmp/.easyocr
|
14 |
|
15 |
WORKDIR /app
|