Spaces:
Running
Running
Bahodir Nematjonov
commited on
Commit
·
93eb9c9
1
Parent(s):
24b1d1d
debuging docker
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -11,6 +11,12 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
11 |
# Install Ollama
|
12 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
# Expose FastAPI's port
|
15 |
EXPOSE 7860
|
16 |
|
|
|
11 |
# Install Ollama
|
12 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
13 |
|
14 |
+
# Create a writable Ollama directory for the non-root user
|
15 |
+
RUN mkdir -p /home/user/.ollama && chmod -R 777 /home/user/.ollama
|
16 |
+
|
17 |
+
# Set environment variables to fix permission issue
|
18 |
+
ENV OLLAMA_HOME=/home/user/.ollama
|
19 |
+
|
20 |
# Expose FastAPI's port
|
21 |
EXPOSE 7860
|
22 |
|