Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -4
Dockerfile
CHANGED
@@ -12,10 +12,7 @@ COPY . /app
|
|
12 |
# Install Python packages
|
13 |
RUN pip install --no-cache-dir --upgrade pip
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
-
RUN chmod -R 777 /app
|
16 |
-
|
17 |
-
# Preload model into cache
|
18 |
-
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
|
19 |
|
20 |
# Expose port for Hugging Face Spaces
|
21 |
ENV PORT 7860
|
|
|
12 |
# Install Python packages
|
13 |
RUN pip install --no-cache-dir --upgrade pip
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
|
|
|
|
|
|
16 |
|
17 |
# Expose port for Hugging Face Spaces
|
18 |
ENV PORT 7860
|