ankanpy commited on
Commit
dbafe5e
·
verified ·
1 Parent(s): ec89c8c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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