Spaces:
Runtime error
Runtime error
Commit ·
fcf0970
1
Parent(s): b635cba
docker
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -11,8 +11,9 @@ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
|
| 11 |
# Create the cache directory and set permissions
|
| 12 |
RUN mkdir -p /code/transformers_cache && chmod -R 777 /code/transformers_cache
|
| 13 |
|
| 14 |
-
# Set the TRANSFORMERS_CACHE environment
|
| 15 |
ENV TRANSFORMERS_CACHE=/code/transformers_cache
|
|
|
|
| 16 |
|
| 17 |
COPY . .
|
| 18 |
|
|
|
|
| 11 |
# Create the cache directory and set permissions
|
| 12 |
RUN mkdir -p /code/transformers_cache && chmod -R 777 /code/transformers_cache
|
| 13 |
|
| 14 |
+
# Set the TRANSFORMERS_CACHE and HF_HOME environment variables
|
| 15 |
ENV TRANSFORMERS_CACHE=/code/transformers_cache
|
| 16 |
+
ENV HF_HOME=/code/transformers_cache
|
| 17 |
|
| 18 |
COPY . .
|
| 19 |
|