shayan5422 commited on
Commit
e067d1a
·
verified ·
1 Parent(s): 4a0cac4

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -15,6 +15,10 @@ ENV TRANSFORMERS_CACHE=/app/.cache/transformers
15
  # Set the working directory in the container
16
  WORKDIR /app
17
 
 
 
 
 
18
  # Copy the requirements file into the container at /app
19
  COPY requirements.txt .
20
 
 
15
  # Set the working directory in the container
16
  WORKDIR /app
17
 
18
+ # Create the cache directory and set permissions *before* copying files
19
+ # This ensures the directory exists and is writable by the user running the process
20
+ RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
21
+
22
  # Copy the requirements file into the container at /app
23
  COPY requirements.txt .
24