Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +1 -9
Dockerfile
CHANGED
@@ -8,8 +8,6 @@ RUN apt-get update && apt-get install -y \
|
|
8 |
curl \
|
9 |
software-properties-common \
|
10 |
git \
|
11 |
-
ffmpeg \
|
12 |
-
libsndfile1 \
|
13 |
&& rm -rf /var/lib/apt/lists/*
|
14 |
|
15 |
# Create cache directory with proper permissions
|
@@ -19,18 +17,12 @@ RUN mkdir -p /root/.cache/huggingface && \
|
|
19 |
# Set environment variables
|
20 |
ENV TRANSFORMERS_CACHE=/root/.cache/huggingface
|
21 |
ENV HF_HOME=/root/.cache/huggingface
|
22 |
-
ENV PYTHONUNBUFFERED=1
|
23 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
24 |
-
ENV TORCH_HOME=/.cache/torch
|
25 |
-
ENV XDG_CACHE_HOME=/.cache
|
26 |
|
27 |
# Copy requirements first for better caching
|
28 |
COPY requirements.txt .
|
29 |
|
30 |
# Install Python dependencies
|
31 |
-
RUN pip install --no-cache-dir
|
32 |
-
pip install --no-cache-dir -r requirements.txt && \
|
33 |
-
python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('jinaai/jina-embeddings-v3', trust_remote_code=True)"
|
34 |
|
35 |
# Copy the rest of the application
|
36 |
COPY . .
|
|
|
8 |
curl \
|
9 |
software-properties-common \
|
10 |
git \
|
|
|
|
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
# Create cache directory with proper permissions
|
|
|
17 |
# Set environment variables
|
18 |
ENV TRANSFORMERS_CACHE=/root/.cache/huggingface
|
19 |
ENV HF_HOME=/root/.cache/huggingface
|
|
|
|
|
|
|
|
|
20 |
|
21 |
# Copy requirements first for better caching
|
22 |
COPY requirements.txt .
|
23 |
|
24 |
# Install Python dependencies
|
25 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
26 |
|
27 |
# Copy the rest of the application
|
28 |
COPY . .
|