Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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
|