NitinBot002 commited on
Commit
b04bc40
·
verified ·
1 Parent(s): 6ea8372

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
  FROM ollama/ollama:latest
 
2
 
3
  # Add user `ollama` only if UID 1000 is not taken; fallback to random UID otherwise
4
  RUN if id -u 1000 >/dev/null 2>&1; then \
@@ -23,7 +24,6 @@ ENV OLLAMA_HOST=0.0.0.0:7860 \
23
  OLLAMA_CPU_THREADS=4
24
 
25
  # Use the created user
26
- USER ollama
27
  WORKDIR /home/ollama
28
 
29
  EXPOSE 7860
 
1
  FROM ollama/ollama:latest
2
+ USER root
3
 
4
  # Add user `ollama` only if UID 1000 is not taken; fallback to random UID otherwise
5
  RUN if id -u 1000 >/dev/null 2>&1; then \
 
24
  OLLAMA_CPU_THREADS=4
25
 
26
  # Use the created user
 
27
  WORKDIR /home/ollama
28
 
29
  EXPOSE 7860