ChandimaPrabath commited on
Commit
c2deb2a
·
verified ·
1 Parent(s): 3f61e77

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -12,9 +12,11 @@ RUN apt-get update && \
12
  ENV HOME=/home/user \
13
  PATH=/home/user/.local/bin:$PATH \
14
  OLLAMA_HOST=0.0.0.0 \
15
- OLLAMA_ORIGINS=*
 
 
16
 
17
- # ==> FIX: Explicitly grant ownership of the home directory to the user
18
  RUN chown -R user:user $HOME
19
 
20
  # Set the working directory and switch to the user
 
12
  ENV HOME=/home/user \
13
  PATH=/home/user/.local/bin:$PATH \
14
  OLLAMA_HOST=0.0.0.0 \
15
+ OLLAMA_ORIGINS=* \
16
+ # ==> FIX: Point Ollama's model storage to the writable /tmp directory
17
+ OLLAMA_MODELS=/tmp/ollama_models
18
 
19
+ # This chown is still good practice, so we'll keep it
20
  RUN chown -R user:user $HOME
21
 
22
  # Set the working directory and switch to the user