Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -7,6 +7,12 @@ RUN --mount=type=secret,id=huggingface_token,mode=0444,required=true \
|
|
| 7 |
git init && \
|
| 8 |
git remote add origin $(cat /run/secrets/huggingface_token)
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
COPY ./requirements.txt /code/requirements.txt
|
| 12 |
|
|
|
|
| 7 |
git init && \
|
| 8 |
git remote add origin $(cat /run/secrets/huggingface_token)
|
| 9 |
|
| 10 |
+
# Set the TRANSFORMERS_CACHE environment variable
|
| 11 |
+
ENV TRANSFORMERS_CACHE=/tmp/.cache/huggingface
|
| 12 |
+
|
| 13 |
+
# Create the cache folder with appropriate permissions
|
| 14 |
+
RUN mkdir -p $TRANSFORMERS_CACHE && chmod -R 777 $TRANSFORMERS_CACHE
|
| 15 |
+
|
| 16 |
|
| 17 |
COPY ./requirements.txt /code/requirements.txt
|
| 18 |
|