Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -2,11 +2,12 @@ FROM python:3.9
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
-
# Create a directory
|
6 |
-
RUN mkdir -p /code/cache
|
|
|
7 |
|
8 |
-
# Set environment variable
|
9 |
-
ENV
|
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 |
|