Spaces:
Runtime error
Runtime error
WebashalarForML
commited on
Commit
•
cb90bb0
1
Parent(s):
cf3b972
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -52,6 +52,11 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
52 |
# Create directories for session storage, uploads, and cache
|
53 |
RUN mkdir -p /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache && chmod -R 777 /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache
|
54 |
|
|
|
|
|
|
|
|
|
|
|
55 |
# Copy the rest of the application code to /app
|
56 |
COPY . /app/
|
57 |
|
|
|
52 |
# Create directories for session storage, uploads, and cache
|
53 |
RUN mkdir -p /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache && chmod -R 777 /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache
|
54 |
|
55 |
+
#Set permission for the paddle OCR
|
56 |
+
ENV PADDLEOCR_MODEL_DIR=/tmp/.paddleocr
|
57 |
+
RUN mkdir -p /tmp/.paddleocr && chmod -R 777 /tmp/.paddleocr
|
58 |
+
|
59 |
+
|
60 |
# Copy the rest of the application code to /app
|
61 |
COPY . /app/
|
62 |
|