Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
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
|