DIVY118 commited on
Commit
1a1a0aa
1 Parent(s): 30ce653

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -4,7 +4,11 @@ WORKDIR /code
4
 
5
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
6
  RUN pip install easyocr opencv-python flask
 
 
7
 
 
 
8
  COPY . .
9
 
10
  CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]
 
4
 
5
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
6
  RUN pip install easyocr opencv-python flask
7
+ # Create the directory if it doesn't exist
8
+ RUN mkdir -p /.EasyOCR
9
 
10
+ # Grant permissions to the directory
11
+ RUN chmod -R 777 /.EasyOCR
12
  COPY . .
13
 
14
  CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]