WebashalarForML commited on
Commit
9a95511
·
verified ·
1 Parent(s): 0b3357f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -25,14 +25,8 @@ 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
- ENV PADDLEOCR_HOME=/app/paddleocr_models
32
- RUN mkdir -p /app/paddleocr_models && chmod -R 777 /app/paddleocr_models
33
-
34
- # RUN python -c "from paddleocr import PaddleOCR; PaddleOCR(use_angle_cls=True, lang='en')"
35
-
36
 
37
  # Adding permission for the cache
38
  RUN chmod -R 777 /app/.cache
@@ -70,9 +64,6 @@ RUN mkdir -p /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_
70
  # Copy the rest of the application code to /app
71
  COPY . /app/
72
 
73
- RUN find / -type d -name "*cls_infer" 2>/dev/null
74
-
75
-
76
  # Expose the port that the app runs on
77
  EXPOSE 7860
78
 
 
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
 
64
  # Copy the rest of the application code to /app
65
  COPY . /app/
66
 
 
 
 
67
  # Expose the port that the app runs on
68
  EXPOSE 7860
69