Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -5,10 +5,10 @@ FROM python:3.10.9
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
# Set a writable directory for Hugging Face cache
|
| 8 |
-
|
| 9 |
|
| 10 |
# Create the cache directory
|
| 11 |
-
|
| 12 |
|
| 13 |
# Copy the current directory contents into the container at /app
|
| 14 |
COPY . /app
|
|
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
# Set a writable directory for Hugging Face cache
|
| 8 |
+
ENV TRANSFORMERS_CACHE=/app/huggingface_cache
|
| 9 |
|
| 10 |
# Create the cache directory
|
| 11 |
+
RUN mkdir -p /app/.cache/huggingface
|
| 12 |
|
| 13 |
# Copy the current directory contents into the container at /app
|
| 14 |
COPY . /app
|