Spaces:
Configuration error
Configuration error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -15,10 +15,10 @@ RUN curl -sSL https://ollama.com/install.sh | bash
|
|
15 |
# Expose the port for the model server (assuming default port 5000)
|
16 |
EXPOSE 5000
|
17 |
|
18 |
-
# Start
|
19 |
CMD /bin/bash -c "
|
20 |
-
# Start Ollama service in the
|
21 |
-
|
22 |
# Wait for Ollama to be ready
|
23 |
sleep 10 && \
|
24 |
# Pull the llama-3.2 model
|
|
|
15 |
# Expose the port for the model server (assuming default port 5000)
|
16 |
EXPOSE 5000
|
17 |
|
18 |
+
# Start Ollama service, pull the model, and then serve it
|
19 |
CMD /bin/bash -c "
|
20 |
+
# Start the Ollama service in the foreground
|
21 |
+
ollama & \
|
22 |
# Wait for Ollama to be ready
|
23 |
sleep 10 && \
|
24 |
# Pull the llama-3.2 model
|