Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y \
|
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
# Create a writable cache directory
|
|
|
11 |
ENV HF_HOME=/app/hf_cache
|
12 |
|
13 |
# Set working directory and copy files
|
@@ -17,5 +18,8 @@ COPY run.py ./
|
|
17 |
|
18 |
RUN pip3 install -r requirements.txt
|
19 |
|
|
|
|
|
|
|
20 |
|
21 |
ENTRYPOINT ["python3", "run.py"]
|
|
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
# Create a writable cache directory
|
11 |
+
RUN mkdir -p /app/hf_cache
|
12 |
ENV HF_HOME=/app/hf_cache
|
13 |
|
14 |
# Set working directory and copy files
|
|
|
18 |
|
19 |
RUN pip3 install -r requirements.txt
|
20 |
|
21 |
+
RUN ls -ld /app/hf_cache && touch /app/hf_cache/test.txt
|
22 |
+
|
23 |
+
|
24 |
|
25 |
ENTRYPOINT ["python3", "run.py"]
|