Spaces:
Running
Running
Bahodir Nematjonov
commited on
Commit
·
04f2bac
1
Parent(s):
bdf1c9b
debug
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -15,10 +15,10 @@ RUN curl -fsSL https://ollama.com/install.sh | sh
|
|
15 |
RUN mkdir -p /home/user/.ollama && chmod -R 777 /home/user/.ollama
|
16 |
|
17 |
# Set Ollama to use this directory
|
18 |
-
ENV
|
19 |
|
20 |
# Expose the FastAPI port
|
21 |
EXPOSE 7860
|
22 |
|
23 |
# Start Ollama in the background and then FastAPI
|
24 |
-
CMD ollama serve
|
|
|
15 |
RUN mkdir -p /home/user/.ollama && chmod -R 777 /home/user/.ollama
|
16 |
|
17 |
# Set Ollama to use this directory
|
18 |
+
ENV OLLAMA_HOME=/home/user/.ollama
|
19 |
|
20 |
# Expose the FastAPI port
|
21 |
EXPOSE 7860
|
22 |
|
23 |
# Start Ollama in the background and then FastAPI
|
24 |
+
CMD OLLAMA_HOME=/home/user/.ollama ollama serve & uvicorn main:app --host 0.0.0.0 --port 7860
|