WebashalarForML commited on
Commit
9a4bf63
1 Parent(s): 308366d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -20,6 +20,14 @@ ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
20
  ENV HF_HOME=/app/.cache/huggingface
21
  ENV MPLCONFIGDIR=/app/.cache/matplotlib
22
 
 
 
 
 
 
 
 
 
23
  # Adding permission for the cache
24
  RUN chmod -R 777 /app/.cache
25
 
@@ -52,14 +60,6 @@ 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
- # 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
- # Set environment variable for PaddleOCR to use /tmp/.paddleocr
60
- ENV PADDLEOCR_HOME=/tmp/.paddleocr
61
- RUN mkdir -p /tmp/.paddleocr && chmod -R 777 /tmp/.paddleocr
62
-
63
  # Copy the rest of the application code to /app
64
  COPY . /app/
65
 
 
20
  ENV HF_HOME=/app/.cache/huggingface
21
  ENV MPLCONFIGDIR=/app/.cache/matplotlib
22
 
23
+ # Set permission for the Paddle OCR
24
+ ENV PADDLEOCR_MODEL_DIR=/tmp/.paddleocr
25
+ RUN mkdir -p /tmp/.paddleocr && chmod -R 777 /tmp/.paddleocr
26
+
27
+ # Set environment variable for PaddleOCR to use /tmp/.paddleocr
28
+ ENV PADDLEOCR_HOME=/tmp/.paddleocr
29
+ RUN mkdir -p /tmp/.paddleocr && chmod -R 777 /tmp/.paddleocr
30
+
31
  # Adding permission for the cache
32
  RUN chmod -R 777 /app/.cache
33
 
 
60
  # Create directories for session storage, uploads, and cache
61
  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
62
 
 
 
 
 
 
 
 
 
63
  # Copy the rest of the application code to /app
64
  COPY . /app/
65