Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -11,7 +11,12 @@ RUN pip install --no-cache-dir transformers datasets accelerate peft torch torch
|
|
11 |
COPY . .
|
12 |
|
13 |
# Set a writable cache directory inside the app folder
|
|
|
14 |
ENV HF_HOME=/app/hf_cache
|
15 |
-
|
|
|
|
|
|
|
|
|
16 |
# Set default command (replace with your training script later)
|
17 |
CMD ["python", "train.py"]
|
|
|
11 |
COPY . .
|
12 |
|
13 |
# Set a writable cache directory inside the app folder
|
14 |
+
# Set writable cache directory inside the app folder
|
15 |
ENV HF_HOME=/app/hf_cache
|
16 |
+
ENV HF_DATASETS_CACHE=/app/hf_cache
|
17 |
+
ENV TRANSFORMERS_CACHE=/app/hf_cache
|
18 |
+
|
19 |
+
# Create the cache directory and set correct permissions
|
20 |
+
RUN mkdir -p /app/hf_cache/hub && chmod -R 777 /app/hf_cache
|
21 |
# Set default command (replace with your training script later)
|
22 |
CMD ["python", "train.py"]
|