Spaces:
Runtime error
Runtime error
AI-RESEARCHER-2024
commited on
Commit
•
284991d
1
Parent(s):
a65d371
Update Dockerfile
Browse files- Dockerfile +2 -5
Dockerfile
CHANGED
@@ -16,11 +16,8 @@ RUN pip install -r requirements.txt
|
|
16 |
# Install Ollama
|
17 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
18 |
|
19 |
-
# Start Ollama server in the background
|
20 |
-
RUN
|
21 |
-
|
22 |
-
# Pull the Ollama model
|
23 |
-
RUN ollama pull llama3.2:latest
|
24 |
|
25 |
# Set the command to run the Chainlit application
|
26 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
16 |
# Install Ollama
|
17 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
18 |
|
19 |
+
# Start Ollama server in the background and pull the required model
|
20 |
+
RUN ollama serve & sleep 5 && ollama pull llama3.2:latest
|
|
|
|
|
|
|
21 |
|
22 |
# Set the command to run the Chainlit application
|
23 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|