Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -24,6 +24,11 @@ RUN apt-get update && \
|
|
24 |
# 5. Install Ollama
|
25 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
26 |
|
|
|
|
|
|
|
|
|
|
|
27 |
# 6. Copy Application Requirements
|
28 |
COPY requirements.txt .
|
29 |
|
|
|
24 |
# 5. Install Ollama
|
25 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
26 |
|
27 |
+
# Explicitly create the .ollama directory and ensure root owns it
|
28 |
+
RUN mkdir -p /root/.ollama && \
|
29 |
+
chown -R root:root /root/.ollama && \
|
30 |
+
chmod -R 700 /root/.ollama
|
31 |
+
|
32 |
# 6. Copy Application Requirements
|
33 |
COPY requirements.txt .
|
34 |
|