LemonPit commited on
Commit
acdf619
1 Parent(s): 48e6878

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -2,11 +2,12 @@ FROM python:3.9
2
 
3
  WORKDIR /code
4
 
5
- # Create a directory for the cache
6
- RUN mkdir -p /code/cache
 
7
 
8
- # Set environment variable to use this directory for the Transformers cache
9
- ENV TRANSFORMERS_CACHE=/code/cache
10
  # Install segment-anything from GitHub
11
  RUN pip install --no-cache-dir git+https://github.com/facebookresearch/segment-anything.git
12
 
 
2
 
3
  WORKDIR /code
4
 
5
+ # Create a cache directory and set permissions
6
+ RUN mkdir -p /code/cache && \
7
+ chmod -R 777 /code/cache
8
 
9
+ # Set environment variable for the Transformers cache
10
+ ENV HF_HOME=/code/cache
11
  # Install segment-anything from GitHub
12
  RUN pip install --no-cache-dir git+https://github.com/facebookresearch/segment-anything.git
13