Subhraj07 commited on
Commit
b7dcd2c
·
verified ·
1 Parent(s): a64a3ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -7,8 +7,8 @@ RUN useradd -ms /bin/bash ollama-user
7
  ENV HOME=/home/ollama-user
8
  WORKDIR $HOME
9
 
10
- # Ensure the user owns their home directory (let Ollama create .ollama itself)
11
- RUN chown -R ollama-user:ollama-user $HOME
12
 
13
  # Install netcat-openbsd (more reliable than netcat)
14
  RUN apt-get update && apt-get install -y netcat-openbsd && rm -rf /var/lib/apt/lists/*
 
7
  ENV HOME=/home/ollama-user
8
  WORKDIR $HOME
9
 
10
+ # Ensure the user has access to the directory
11
+ RUN mkdir -p $HOME/.ollama && chown -R ollama-user:ollama-user $HOME/.ollama
12
 
13
  # Install netcat-openbsd (more reliable than netcat)
14
  RUN apt-get update && apt-get install -y netcat-openbsd && rm -rf /var/lib/apt/lists/*