VimalrajS04 commited on
Commit
a4ae348
·
1 Parent(s): d296660

Resolving docker error

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -9,9 +9,12 @@ RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 libsm6 libxext6 &&
9
  # Set the working directory inside the container
10
  WORKDIR /code
11
 
12
- # --- THIS IS THE NEW LINE ---
13
  # Set a writable cache directory for doctr inside our work directory
14
  ENV DOCTR_CACHE_DIR=".cache/doctr"
 
 
 
 
15
  # --- END OF NEW LINE ---
16
 
17
  # Copy the requirements file and install packages
 
9
  # Set the working directory inside the container
10
  WORKDIR /code
11
 
 
12
  # Set a writable cache directory for doctr inside our work directory
13
  ENV DOCTR_CACHE_DIR=".cache/doctr"
14
+
15
+ # --- THIS IS THE NEW LINE ---
16
+ # Pre-create the cache directory and make it writable by any user
17
+ RUN mkdir -p .cache/doctr && chmod 777 -R .cache
18
  # --- END OF NEW LINE ---
19
 
20
  # Copy the requirements file and install packages