Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -7,8 +7,10 @@ RUN useradd -ms /bin/bash ollama-user
|
|
| 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 &&
|
|
|
|
|
|
|
| 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 and fix permissions
|
| 11 |
+
RUN mkdir -p $HOME/.ollama && \
|
| 12 |
+
chown -R ollama-user:ollama-user $HOME && \
|
| 13 |
+
chmod -R 755 $HOME
|
| 14 |
|
| 15 |
# Install netcat-openbsd (more reliable than netcat)
|
| 16 |
RUN apt-get update && apt-get install -y netcat-openbsd && rm -rf /var/lib/apt/lists/*
|