Spaces:
Running
Running
Dockerfile permission for cache 777 and no locking
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
|
|
11 |
|
12 |
COPY requirements.txt .
|
13 |
|
14 |
-
# Upgrade pip and install vLLM with GPU support first
|
15 |
RUN pip install --upgrade pip
|
16 |
RUN pip install --no-cache-dir vllm==0.10.1 --extra-index-url https://download.pytorch.org/whl/cu128
|
17 |
|
@@ -20,6 +20,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
20 |
|
21 |
COPY app.py pipeline.py db_utils.py ./
|
22 |
|
|
|
|
|
|
|
|
|
|
|
23 |
ENV HF_HOME=/cache/huggingface
|
24 |
ENV PORT=8501
|
25 |
ENV OMP_NUM_THREADS=8
|
|
|
11 |
|
12 |
COPY requirements.txt .
|
13 |
|
14 |
+
# Upgrade pip and install vLLM with GPU support first
|
15 |
RUN pip install --upgrade pip
|
16 |
RUN pip install --no-cache-dir vllm==0.10.1 --extra-index-url https://download.pytorch.org/whl/cu128
|
17 |
|
|
|
20 |
|
21 |
COPY app.py pipeline.py db_utils.py ./
|
22 |
|
23 |
+
# Set up cache directory permissions and clear stale locks
|
24 |
+
RUN mkdir -p /cache/huggingface && \
|
25 |
+
chmod -R 777 /cache/huggingface && \
|
26 |
+
rm -f /cache/huggingface/*.lock /cache/huggingface/*/*.lock
|
27 |
+
|
28 |
ENV HF_HOME=/cache/huggingface
|
29 |
ENV PORT=8501
|
30 |
ENV OMP_NUM_THREADS=8
|