Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
-
# Use official Python image
|
2 |
FROM python:3.10
|
3 |
|
4 |
-
# Set working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Copy requirements and install dependencies
|
8 |
COPY requirements.txt .
|
9 |
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
|
11 |
-
# Copy the rest of the code
|
12 |
COPY . .
|
13 |
|
14 |
-
#
|
|
|
|
|
15 |
CMD ["python", "train.py"]
|
|
|
|
|
1 |
FROM python:3.10
|
2 |
|
|
|
3 |
WORKDIR /app
|
4 |
|
|
|
5 |
COPY requirements.txt .
|
6 |
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
|
|
|
8 |
COPY . .
|
9 |
|
10 |
+
# set huggingface cache directory to something writeable
|
11 |
+
ENV HF_HOME=/app/.cache/huggingface
|
12 |
+
|
13 |
CMD ["python", "train.py"]
|