astro21 commited on
Commit
4e4d7b0
·
verified ·
1 Parent(s): 7c60bfb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -8,8 +8,12 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  # Set the TRANSFORMERS_CACHE environment variable
10
  ENV CODE /code
 
11
 
12
 
 
 
 
13
  # Create the cache directory and adjust permissions
14
  RUN chmod -R 777 $CODE
15
 
 
8
 
9
  # Set the TRANSFORMERS_CACHE environment variable
10
  ENV CODE /code
11
+ ENV CACHE /.cache
12
 
13
 
14
+ RUN mkdir -p $CACHE \
15
+ && chmod -R 777 $CACHE
16
+
17
  # Create the cache directory and adjust permissions
18
  RUN chmod -R 777 $CODE
19