Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -2,6 +2,11 @@ FROM python:3.9
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
# Install segment-anything from GitHub
|
6 |
RUN pip install --no-cache-dir git+https://github.com/facebookresearch/segment-anything.git
|
7 |
|
|
|
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 |
|